Skip to content

Commit

Permalink
r8169: change mdelay to msleep in rtl_fw_write_firmware
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiner Kallweit authored and David S. Miller committed Nov 20, 2019
1 parent e2ffe3f commit e20c43d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/realtek/r8169_firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit e20c43d

Please sign in to comment.