r8169: change mdelay to msleep in rtl_fw_write_firmware
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 20 Nov 2019 20:06:58 +0000 (21:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Nov 2019 20:50:24 +0000 (12:50 -0800)
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>
drivers/net/ethernet/realtek/r8169_firmware.c

index 8f54a2c832eba331a7ecdd8975138600b9dc1715..52241508473a7ba93ee59e827bece0b842b9f321 100644 (file)
@@ -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;
                }
        }