]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
net: sh_eth: Fix checkpatch warning
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Fri, 16 Feb 2018 23:57:49 +0000 (00:57 +0100)
committerMarek Vasut <marex@denx.de>
Sun, 18 Feb 2018 10:20:18 +0000 (11:20 +0100)
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@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Cc: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/sh_eth.c

index 6863aecef96830cdb7bb5f056ecd4565580a5318..1864c894b796ad1209c4ce134f339db830657cdc 100644 (file)
@@ -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);