• Vaibhav Gupta's avatar
    ptp_pch: use generic power management · 4b88b9ce
    Vaibhav Gupta authored
    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.
    
    In the case of ptp_pch, after removing PCI helper functions, .suspend()
    and .resume() became empty-body functions. Hence, define them NULL and
    use dev_pm_ops.
    
    Compile-tested only.
    Signed-off-by: default avatarVaibhav Gupta <vaibhavgupta40@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    4b88b9ce
ptp_pch.c 15 KB