From: Mike Frysinger Date: Mon, 5 Mar 2012 13:46:51 +0000 (+0000) Subject: net: smc91111: use mdelay() X-Git-Tag: v2012.04-rc1~17^2^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=65029492914ea96dec0bfe25a987463a869c72d2;p=u-boot net: smc91111: use mdelay() We've already got a mdelay() func in common code, so use that instead. Signed-off-by: Mike Frysinger --- diff --git a/drivers/net/smc91111.c b/drivers/net/smc91111.c index 9b8236ddf0..5cfef4dd7b 100644 --- a/drivers/net/smc91111.c +++ b/drivers/net/smc91111.c @@ -1168,17 +1168,6 @@ static void smc_write_phy_register (struct eth_device *dev, byte phyreg, #endif /* !CONFIG_SMC91111_EXT_PHY */ -/*------------------------------------------------------------ - . Waits the specified number of milliseconds - kernel friendly - .-------------------------------------------------------------*/ -#ifndef CONFIG_SMC91111_EXT_PHY -static void smc_wait_ms(unsigned int ms) -{ - udelay(ms*1000); -} -#endif /* !CONFIG_SMC91111_EXT_PHY */ - - /*------------------------------------------------------------ . Configures the specified PHY using Autonegotiation. Calls . smc_phy_fixed() if the user has requested a certain config. @@ -1205,7 +1194,7 @@ static void smc_phy_configure (struct eth_device *dev) break; } - smc_wait_ms (500); /* wait 500 millisecs */ + mdelay(500); /* wait 500 millisecs */ } if (timeout < 1) { @@ -1270,7 +1259,7 @@ static void smc_phy_configure (struct eth_device *dev) break; } - smc_wait_ms (500); /* wait 500 millisecs */ + mdelay(500); /* wait 500 millisecs */ /* Restart auto-negotiation if remote fault */ if (status & PHY_STAT_REM_FLT) {