Merge branch 'smsc-use-generic-power-management'
authorDavid S. Miller <davem@davemloft.net>
Tue, 7 Jul 2020 22:20:49 +0000 (15:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Jul 2020 22:20:49 +0000 (15:20 -0700)
commit9914175f9c4213ff1be1994daee3a9c3ad424255
tree47c75a21e27a86789e05551af64e9b20eb94f090
parent4e48978cd28ce51945c08650e5c5502ca41e1fcc
parent53fff2bfb3fcce7f7e8ac424da73070ac7a550da
Merge branch 'smsc-use-generic-power-management'

Vaibhav Gupta says:

====================
smsc: use generic power management

Linux Kernel Mentee: Remove Legacy Power Management.

The purpose of this patch series is to remove legacy power management callbacks
from smsc ethernet drivers.

The callbacks performing suspend() and resume() operations are still calling
pci_save_state(), pci_set_power_state(), etc. and handling the power management
themselves, which is not recommended.

The conversion requires the removal of the those function calls and change the
callback definition accordingly and make use of dev_pm_ops structure.

All patches are compile-tested only.

V2: Kbuild in V1, warning: variable 'err' is used uninitialized whenever 'if'
conditio is false in funcution .resume() .
====================

Signed-off-by: David S. Miller <davem@davemloft.net>