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

Thus, there is no need to call the PCI helper functions like
pci_enable_device(), pci_save/restore_sate(), etc.

Compile-tested only.

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/sta2x11/sta2x11_vip.c