• Vaibhav Gupta's avatar
    tulip: de2104x: use generic power management · 8cfa989a
    Vaibhav Gupta authored
    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: default avatarVaibhav Gupta <vaibhavgupta40@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    8cfa989a
de2104x.c 52.9 KB