* [U-Boot] [PATCH] net: smc91111: use mdelay()
@ 2012-03-05 23:46 Mike Frysinger
2012-03-27 13:14 ` Anatolij Gustschin
0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2012-03-05 23:46 UTC (permalink / raw)
To: u-boot
We've already got a mdelay() func in common code, so use that instead.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
drivers/net/smc91111.c | 15 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
diff --git a/drivers/net/smc91111.c b/drivers/net/smc91111.c
index 9b8236d..5cfef4d 100644
--- a/drivers/net/smc91111.c
+++ b/drivers/net/smc91111.c
@@ -1169,17 +1169,6 @@ static void smc_write_phy_register (struct eth_device *dev, byte phyreg,
/*------------------------------------------------------------
- . 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) {
--
1.7.8.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] net: smc91111: use mdelay()
2012-03-05 23:46 [U-Boot] [PATCH] net: smc91111: use mdelay() Mike Frysinger
@ 2012-03-27 13:14 ` Anatolij Gustschin
0 siblings, 0 replies; 2+ messages in thread
From: Anatolij Gustschin @ 2012-03-27 13:14 UTC (permalink / raw)
To: u-boot
Hi Mike,
On Mon, 5 Mar 2012 18:46:51 -0500
Mike Frysinger <vapier@gentoo.org> wrote:
> We've already got a mdelay() func in common code, so use that instead.
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
> drivers/net/smc91111.c | 15 ++-------------
> 1 files changed, 2 insertions(+), 13 deletions(-)
Applied to u-boot-staging/agust at denx.de, thanks!
Anatolij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-27 13:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-05 23:46 [U-Boot] [PATCH] net: smc91111: use mdelay() Mike Frysinger
2012-03-27 13:14 ` Anatolij Gustschin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox