media: netup_unidvb: drop initialization of PM pointers
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Sun, 30 Aug 2020 09:44:14 +0000 (11:44 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 27 Sep 2020 09:24:28 +0000 (11:24 +0200)
The .suspend() and .resume() callbacks are not defined for this driver.
Thus, just the unlisting of PM pointers in the struct initializer will make
no change in its behavior. Still unlisting is necessary so as to get rid of
.suspend and .resume pointers as they are part of the legacy framework and
should not be used in the driver code explicitly.

Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/netup_unidvb/netup_unidvb_core.c

index 80a7c41baa9017aa8476ff9a18d842b5a17db5b8..6f3125c2d09767c28f470fec210fce71ba07cf3e 100644 (file)
@@ -1016,8 +1016,6 @@ static struct pci_driver netup_unidvb_pci_driver = {
        .id_table = netup_unidvb_pci_tbl,
        .probe    = netup_unidvb_initdev,
        .remove   = netup_unidvb_finidev,
-       .suspend  = NULL,
-       .resume   = NULL,
 };
 
 module_pci_driver(netup_unidvb_pci_driver);