mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00:00
r8169: remove not needed call to rtl_wol_enable_rx from rtl_shutdown
rtl_wol_enable_rx() is called via the following call chain if WoL is enabled: rtl8169_down() -> rtl_prepare_power_down() -> rtl_wol_enable_rx() Therefore we don't have to call this function here. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Link: https://lore.kernel.org/r/34ce78e2-596c-e2ac-16aa-c550fa624c22@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
275b1e88ca
commit
17ce76c498
1 changed files with 1 additions and 3 deletions
|
@ -4850,10 +4850,8 @@ static void rtl_shutdown(struct pci_dev *pdev)
|
|||
rtl_rar_set(tp, tp->dev->perm_addr);
|
||||
|
||||
if (system_state == SYSTEM_POWER_OFF) {
|
||||
if (tp->saved_wolopts) {
|
||||
rtl_wol_enable_rx(tp);
|
||||
if (tp->saved_wolopts)
|
||||
rtl_wol_shutdown_quirk(tp);
|
||||
}
|
||||
|
||||
pci_wake_from_d3(pdev, tp->saved_wolopts);
|
||||
pci_set_power_state(pdev, PCI_D3hot);
|
||||
|
|
Loading…
Reference in a new issue