[U-Boot] [PATCH 3/4] net: sh_eth: Fix checkpatch warning

Marek Vasut marek.vasut at gmail.com
Sat Feb 17 00:04:43 UTC 2018


Fix minor checkpatch warning about udelay(3000) being too long
and should be replaced by mdelay(3).

Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
Cc: Joe Hershberger <joe.hershberger at ni.com>
---
 drivers/net/sh_eth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c
index bdb054a36a..252c6279b0 100644
--- a/drivers/net/sh_eth.c
+++ b/drivers/net/sh_eth.c
@@ -179,7 +179,7 @@ static int sh_eth_reset(struct sh_eth_dev *eth)
 	return ret;
 #else
 	sh_eth_write(port_info, sh_eth_read(port_info, EDMR) | EDMR_SRST, EDMR);
-	udelay(3000);
+	mdelay(3);
 	sh_eth_write(port_info,
 		     sh_eth_read(port_info, EDMR) & ~EDMR_SRST, EDMR);
 
-- 
2.15.1



More information about the U-Boot mailing list