diff options
author | Simon Glass <sjg@chromium.org> | 2020-05-10 11:40:10 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-05-18 21:19:23 -0400 |
commit | 07e1114671c8b13d1bb90548a3c5ea31c49415d1 (patch) | |
tree | d64c8a76ebfe729975a5b5a9e0b9f56bfdec01fb /drivers/qe | |
parent | 1af3c7f422f627a544fec13e436d1a7975e39e73 (diff) | |
download | u-boot-07e1114671c8b13d1bb90548a3c5ea31c49415d1.tar.gz |
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/qe')
-rw-r--r-- | drivers/qe/uec_phy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/qe/uec_phy.c b/drivers/qe/uec_phy.c index 9425379794..1dae261509 100644 --- a/drivers/qe/uec_phy.c +++ b/drivers/qe/uec_phy.c @@ -875,7 +875,7 @@ void marvell_phy_interface_mode(struct eth_device *dev, phy_interface_t type, uec_phy_write(mii_info, 0x04, 0x01e1); uec_phy_write(mii_info, 0x00, 0x9140); uec_phy_write(mii_info, 0x00, 0x1000); - udelay (100000); + mdelay(100); uec_phy_write(mii_info, 0x00, 0x2900); uec_phy_write(mii_info, 0x14, 0x0cd2); uec_phy_write(mii_info, 0x00, 0xa100); @@ -884,13 +884,13 @@ void marvell_phy_interface_mode(struct eth_device *dev, phy_interface_t type, uec_phy_write(mii_info, 0x04, 0x05e1); uec_phy_write(mii_info, 0x00, 0xa100); uec_phy_write(mii_info, 0x00, 0x2100); - udelay (1000000); + mdelay(1000); } else if (speed == SPEED_10) { uec_phy_write(mii_info, 0x14, 0x8e40); uec_phy_write(mii_info, 0x1b, 0x800b); uec_phy_write(mii_info, 0x14, 0x0c82); uec_phy_write(mii_info, 0x00, 0x8100); - udelay (1000000); + mdelay(1000); } } |