mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-25 23:06:15 +00:00
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>
This commit is contained in:
parent
1af3c7f422
commit
07e1114671
14 changed files with 71 additions and 71 deletions
|
@ -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, 0x04, 0x01e1);
|
||||||
uec_phy_write(mii_info, 0x00, 0x9140);
|
uec_phy_write(mii_info, 0x00, 0x9140);
|
||||||
uec_phy_write(mii_info, 0x00, 0x1000);
|
uec_phy_write(mii_info, 0x00, 0x1000);
|
||||||
udelay (100000);
|
mdelay(100);
|
||||||
uec_phy_write(mii_info, 0x00, 0x2900);
|
uec_phy_write(mii_info, 0x00, 0x2900);
|
||||||
uec_phy_write(mii_info, 0x14, 0x0cd2);
|
uec_phy_write(mii_info, 0x14, 0x0cd2);
|
||||||
uec_phy_write(mii_info, 0x00, 0xa100);
|
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, 0x04, 0x05e1);
|
||||||
uec_phy_write(mii_info, 0x00, 0xa100);
|
uec_phy_write(mii_info, 0x00, 0xa100);
|
||||||
uec_phy_write(mii_info, 0x00, 0x2100);
|
uec_phy_write(mii_info, 0x00, 0x2100);
|
||||||
udelay (1000000);
|
mdelay(1000);
|
||||||
} else if (speed == SPEED_10) {
|
} else if (speed == SPEED_10) {
|
||||||
uec_phy_write(mii_info, 0x14, 0x8e40);
|
uec_phy_write(mii_info, 0x14, 0x8e40);
|
||||||
uec_phy_write(mii_info, 0x1b, 0x800b);
|
uec_phy_write(mii_info, 0x1b, 0x800b);
|
||||||
uec_phy_write(mii_info, 0x14, 0x0c82);
|
uec_phy_write(mii_info, 0x14, 0x0c82);
|
||||||
uec_phy_write(mii_info, 0x00, 0x8100);
|
uec_phy_write(mii_info, 0x00, 0x8100);
|
||||||
udelay (1000000);
|
mdelay(1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue