media: cx88: use generic power management
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Fri, 17 Jul 2020 07:34:34 +0000 (09:34 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 12:24:19 +0000 (14:24 +0200)
commita28b2ed9ad0551a18aaa2fa6ba8dd3d3e8cfb27f
treed3e6e5a1582dc5b92085e480e74f055da96bc055
parentfc1f0e67f68f78da8426632e7ff3703b93148dba
media: cx88: 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.

The driver was invoking PCI helper functions like pci_save/restore_state(),
pci_enable/disable_device() and pci_set_power_state(), which is not
recommended.

Compile-tested only.

[hverkuil: fixes checkpatch alignment warning]

Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/cx88/cx88-video.c