tulip: windbond-840: use generic power management
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Mon, 22 Jun 2020 11:42:25 +0000 (17:12 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2020 03:33:15 +0000 (20:33 -0700)
commitfc9aebfbdb7ea9c854e4efe9f1f0389fef814c44
tree363a3b654aa72670a64c024b3b5e76fc1ea6cefa
parentf906d0f9cd43adfce79a84fa0d48702ea7b887d3
tulip: windbond-840: use generic power management

With stable 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, .resume() was invoking pci_enable_device(). Drivers should not
call PCI legacy helper functions, hence, it was removed. This should not
change the behavior of the device as this function is called by PCI core
if somehow pm_ops is not able to bind with the driver, else, required tasks
are managed by the core itself.

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/winbond-840.c