prism54: islpci_hotplug: use generic power management
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Tue, 21 Jul 2020 12:55:15 +0000 (18:25 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 2 Aug 2020 14:58:56 +0000 (17:58 +0300)
commit81cf72b74671ab945bed00ef8da78078c04998ce
tree60e02221d03ffc91e03a175b2339cfb0a2dd3bb9
parent87b589a19901552a6d4b9976c17530d73e3c2dcf
prism54: islpci_hotplug: use generic power management

Drivers using legacy power management .suspen()/.resume() callbacks
have to manage PCI states and device's PM states themselves. They also
need to take care of standard configuration registers.

Switch to generic power management framework using a single
"struct dev_pm_ops" variable to take the unnecessary load from the driver.
This also avoids the need for the driver to directly call most of the PCI
helper functions and device power state control functions as through
the generic framework, PCI Core takes care of the necessary operations,
and drivers are required to do only device-specific jobs.

Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200721125514.145607-1-vaibhavgupta40@gmail.com
drivers/net/wireless/intersil/prism54/islpci_hotplug.c