diff options
author | Vaibhav Gupta <vaibhavgupta40@gmail.com> | 2020-07-20 21:49:31 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-20 18:01:07 -0700 |
commit | 0c17ac5424daaa5fbf4842792f112fb6d7c81841 (patch) | |
tree | 69ae25e14aa827c6b887cf74ef1556642a838337 /include/net/failover.h | |
parent | f43995bd23e423cf887bb17367bc34e52e1fed4c (diff) |
ethernet: myri10ge: use generic power management
Drivers using legacy PM have to manage PCI states and device's PM states
themselves. They also need to take care of configuration registers.
With improved and powerful support of generic PM, PCI Core takes care of
above mentioned, device-independent, jobs.
This driver makes use of PCI helper functions like
pci_save/restore_state(), pci_enable/disable_device(),
pci_set_power_state() and pci_set_master() to do required operations. In
generic mode, they are no longer needed.
Change function parameter in both .suspend() and .resume() to
"struct device*" type. Use to_pci_dev() and dev_get_drvdata() to get
"struct pci_dev*" variable and drv data.
Compile-tested only.
Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/failover.h')
0 files changed, 0 insertions, 0 deletions