diff options
author | Simon Glass <sjg@chromium.org> | 2020-05-10 20:40:10 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-05-19 04:19:23 +0300 |
commit | 07e1114671c8b13d1bb90548a3c5ea31c49415d1 (patch) | |
tree | d64c8a76ebfe729975a5b5a9e0b9f56bfdec01fb /drivers/net/ax88180.c | |
parent | 1af3c7f422f627a544fec13e436d1a7975e39e73 (diff) | |
download | u-boot-07e1114671c8b13d1bb90548a3c5ea31c49415d1.tar.xz |
Fix some checkpatch warnings in calls to udelay()
Fix up some incorrect code style in calls to functions in the linux/time.h
header, mostly udelay().
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/net/ax88180.c')
-rw-r--r-- | drivers/net/ax88180.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/ax88180.c b/drivers/net/ax88180.c index d13eb11187..2715653cd4 100644 --- a/drivers/net/ax88180.c +++ b/drivers/net/ax88180.c @@ -118,7 +118,7 @@ static int ax88180_phy_reset (struct eth_device *dev) /* Wait for the reset to complete, or time out (500 ms) */ while (ax88180_mdio_read (dev, MII_BMCR) & BMCR_RESET) { - udelay (1000); + udelay(1000); if (--delay_cnt == 0) { printf ("Failed to reset PHY!\n"); return -1; @@ -177,7 +177,7 @@ static int ax88180_poll_tx_complete (struct eth_device *dev) if ((tmpval & txbs_txdp) == 0) break; - udelay (100); + udelay(100); } if (TimeOutCnt) @@ -342,7 +342,7 @@ static void ax88180_media_config (struct eth_device *dev) if (bmsr_val & BMSR_LSTATUS) { break; } - udelay (100); + udelay(100); } bmsr_val = ax88180_mdio_read (dev, MII_BMSR); @@ -364,7 +364,7 @@ static void ax88180_media_config (struct eth_device *dev) if (bmsr_val & BMSR_ANEGCOMPLETE) { break; } - udelay (100); + udelay(100); } } else debug ("ax88180: Auto-negotiation is disabled.\n"); @@ -680,7 +680,7 @@ static void ax88180_read_mac_addr (struct eth_device *dev) tmp_regval = INW (dev, PROMCTRL); if ((tmp_regval & RELOAD_EEPROM) == 0) break; - udelay (1000); + udelay(1000); } /* Get MAC addresses */ |