sundance: use generic power management
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Wed, 1 Jul 2020 16:50:52 +0000 (22:20 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Jul 2020 19:58:33 +0000 (12:58 -0700)
commit78cad4cec6601d891e9fe6936b56a2571abfecb1
treeefb5a4e86dd23624ed54875261a57b025f363307
parent1c2e4839eca20fe0b512cb7014a8a6a1ca83ba99
sundance: use generic power management

With legacy PM, drivers themselves were responsible for managing the
device's power states and takes care of register states.

After upgrading to the generic structure, PCI core will take care of
required tasks and drivers should do only device-specific operations.

Thus, there is no need to call the PCI helper functions like
pci_enable/disable_device(), pci_save/restore_sate() and
pci_set_power_state().

Compile-tested only.

Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dlink/sundance.c