]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/misc/phantom.c
misc/phantom.c: use generic power management
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Mon, 29 Jun 2020 08:15:30 +0000 (13:45 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Jun 2020 16:43:42 +0000 (18:43 +0200)
commit6bbf52566bf7cb26546ec9d9aa76a3cb80d4eb18
tree1152bd613ed92d9c11bed8c0fde8d551b6860aef
parentff249c1c70a665fc7a64e345aa251bc238616a34
misc/phantom.c: 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. All required operations are
done by PCI core.

Driver needs to do only device-specific operations.

Compile-tested only.

Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Link: https://lore.kernel.org/r/20200629081531.214734-5-vaibhavgupta40@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/phantom.c