]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit423d04dab992e928a720dd24b1ef16d12e48e66f
treecb731ba154166d3392ddefcf82784df056e40248
parent1b27efa9b17bc1ba5a549d362cd537dce927d6f3
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