[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200830094413.43816-1-vaibhavgupta40@gmail.com>
Date: Sun, 30 Aug 2020 15:14:14 +0530
From: Vaibhav Gupta <vaibhavgupta40@...il.com>
To: Sean Young <sean@...s.org>, Bjorn Helgaas <helgaas@...nel.org>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Bjorn Helgaas <bjorn@...gaas.com>,
Vaibhav Gupta <vaibhav.varodek@...il.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Sergey Kozlov <serjk@...up.ru>, Abylay Ospan <aospan@...up.ru>,
Hans Verkuil <hverkuil@...all.nl>
Cc: Vaibhav Gupta <vaibhavgupta40@...il.com>,
linux-kernel@...r.kernel.org, linux-media@...r.kernel.org,
linux-kernel-mentees@...ts.linuxfoundation.org,
Shuah Khan <skhan@...uxfoundation.org>
Subject: [PATCH v2] netup_unidvb: drop initialization of PM pointers
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@...il.com>
---
drivers/media/pci/netup_unidvb/netup_unidvb_core.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/media/pci/netup_unidvb/netup_unidvb_core.c b/drivers/media/pci/netup_unidvb/netup_unidvb_core.c
index 80a7c41baa90..6f3125c2d097 100644
--- a/drivers/media/pci/netup_unidvb/netup_unidvb_core.c
+++ b/drivers/media/pci/netup_unidvb/netup_unidvb_core.c
@@ -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);
--
2.28.0
Powered by blists - more mailing lists