adm8211: use generic power management
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Mon, 29 Jun 2020 03:50:32 +0000 (09:20 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 15 Jul 2020 10:38:57 +0000 (13:38 +0300)
commit04bceecdf1e893cd825cd6b2fe788e414a8b18cd
tree22a8342b4ba3db54d1d9c0ab850bfc7a876e9444
parentc689a62b6712475dccee852a5214896014a945a0
adm8211: use generic power management

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 adm8211, 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: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200629035031.169670-1-vaibhavgupta40@gmail.com
drivers/net/wireless/admtek/adm8211.c