aboutsummaryrefslogtreecommitdiff
path: root/drivers/qe
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-05-10 11:40:10 -0600
committerTom Rini <trini@konsulko.com>2020-05-18 21:19:23 -0400
commit07e1114671c8b13d1bb90548a3c5ea31c49415d1 (patch)
treed64c8a76ebfe729975a5b5a9e0b9f56bfdec01fb /drivers/qe
parent1af3c7f422f627a544fec13e436d1a7975e39e73 (diff)
downloadu-boot-07e1114671c8b13d1bb90548a3c5ea31c49415d1.zip
u-boot-07e1114671c8b13d1bb90548a3c5ea31c49415d1.tar.gz
u-boot-07e1114671c8b13d1bb90548a3c5ea31c49415d1.tar.bz2
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/qe/uec_phy.c b/drivers/qe/uec_phy.c
index 9425379..1dae261 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);
}
}