rtl818x_pci: use generic power management
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Tue, 23 Jun 2020 09:44:55 +0000 (15:14 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 15 Jul 2020 10:37:59 +0000 (13:37 +0300)
commitef6425107ccceabf2743e7c848d174a4d51808ab
tree9a43ab1831435e24eea26d02ca53efb3dbc84cb5
parenta7f7c15e945a24fbb8ff99d3b19ab0dcd764030d
rtl818x_pci: use generic power management

Earlier, drivers had to manage the device's power states, and related
operations, themselves. With the generic approach, these are done by PCI
core.

The only driver-specific jobs, .suspend() and .resume() doing were invoking
PCI helper functions pci_save/restore_state() and
pci_set_power_state(). This is not recommeneded as PCI core takes care of
that. Hence they became empty-body functions, thus define them NULL.

Compile-tested only.

Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200623094454.12427-1-vaibhavgupta40@gmail.com
drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c