tulip: de2104x: use generic power management
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Mon, 22 Jun 2020 11:42:26 +0000 (17:12 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2020 03:33:15 +0000 (20:33 -0700)
commit8cfa989ae3f2e208bccd4007b82c02e2f3863014
tree040fc901acd7cd152bc92b9e18b30cbc41682e07
parentfc9aebfbdb7ea9c854e4efe9f1f0389fef814c44
tulip: de2104x: use generic power management

With the support of generic PM callbacks, drivers no longer need to use
legacy .suspend() and .resume() in which they had to maintain PCI states
changes and device's power state themselves.

Earlier, .suspend() and .resume() were invoking pci_disable_device()
and pci_enable_device() respectively to manage the device's power state.
With generic PM, it is no longer needed. The driver is expected to just
implement driver-specific operations and leave power transitions to PCI
core.

Compile-tested only.

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