]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sparc: Use microseconds instead of ticks for timeout
authorFrancois Retief <fgretief@spaceteq.co.za>
Mon, 27 Oct 2014 13:56:01 +0000 (15:56 +0200)
committerFrancois Retief <fgretief@spaceteq.co.za>
Thu, 3 Dec 2015 11:15:49 +0000 (13:15 +0200)
We now use the generic delay method which specifies the timeout as
microseconds instead of ticks.

Signed-off-by: Francois Retief <fgretief@spaceteq.co.za>
drivers/net/greth.c

index 0624eb8cac33a5c2348fa4a55aff346090f2d568..088cb229da17f7c4d2d4f6c7098f81e418824f6e 100644 (file)
@@ -245,7 +245,7 @@ int greth_init_phy(greth_priv * dev, bd_t * bis)
        debug("GRETH PHY ADDRESS: %d\n", phyaddr);
 
        /* X msecs to ticks */
-       timeout = usec2ticks(GRETH_PHY_TIMEOUT_MS * 1000);
+       timeout = GRETH_PHY_TIMEOUT_MS * 1000;
 
        /* Get system timer0 current value
         * Total timeout is 5s