diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-11-20 21:06:58 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-20 12:50:24 -0800 |
commit | e20c43dbdf960e8a03381aa455ddea56504bdbc4 (patch) | |
tree | 91a8f7a270ad016e2cddd140a95df44bc002b214 /drivers/net/ethernet/realtek/r8169_firmware.c | |
parent | e2ffe3ff6f5e18325c7a5500acd102a67fac078f (diff) |
r8169: change mdelay to msleep in rtl_fw_write_firmware
We're not in atomic context here, therefore switch to msleep.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/realtek/r8169_firmware.c')
-rw-r--r-- | drivers/net/ethernet/realtek/r8169_firmware.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/realtek/r8169_firmware.c b/drivers/net/ethernet/realtek/r8169_firmware.c index 8f54a2c832eb..52241508473a 100644 --- a/drivers/net/ethernet/realtek/r8169_firmware.c +++ b/drivers/net/ethernet/realtek/r8169_firmware.c @@ -198,7 +198,7 @@ void rtl_fw_write_firmware(struct rtl8169_private *tp, struct rtl_fw *rtl_fw) index += regno; break; case PHY_DELAY_MS: - mdelay(data); + msleep(data); break; } } |