aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2019-11-20 21:06:58 +0100
committerDavid S. Miller <davem@davemloft.net>2019-11-20 12:50:24 -0800
commite20c43dbdf960e8a03381aa455ddea56504bdbc4 (patch)
tree91a8f7a270ad016e2cddd140a95df44bc002b214
parentnet: ipconfig: Wait for deferred device probes (diff)
downloadlinux-dev-e20c43dbdf960e8a03381aa455ddea56504bdbc4.tar.xz
linux-dev-e20c43dbdf960e8a03381aa455ddea56504bdbc4.zip
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>
-rw-r--r--drivers/net/ethernet/realtek/r8169_firmware.c2
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;
}
}