]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: saa7164: use generic power management
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Mon, 20 Jul 2020 10:27:01 +0000 (12:27 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 6 Aug 2020 09:26:09 +0000 (11:26 +0200)
The .suspend() and .resume() callbacks are not defined for this driver.
Still, their power management structure follows the legacy framework. To
bring it under the generic framework, simply remove the binding of
callbacks from struct "pci_driver".

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/saa7164/saa7164-core.c

index 126d085be9a7fdfff4a9237d55fb27456648e1ad..4b637891b79a3bd330d3a07fc677861f103964d3 100644 (file)
@@ -1539,9 +1539,6 @@ static struct pci_driver saa7164_pci_driver = {
        .id_table = saa7164_pci_tbl,
        .probe    = saa7164_initdev,
        .remove   = saa7164_finidev,
-       /* TODO */
-       .suspend  = NULL,
-       .resume   = NULL,
 };
 
 static int __init saa7164_init(void)