[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <3c6dc0c2b50e9ade60eb484a2e8e4e6234432ec0.1479278622.git.geliangtang@gmail.com>
Date: Wed, 16 Nov 2016 21:00:56 +0800
From: Geliang Tang <geliangtang@...il.com>
To: Sergey Kozlov <serjk@...up.ru>, Abylay Ospan <aospan@...up.ru>,
Mauro Carvalho Chehab <mchehab@...nel.org>
Cc: Geliang Tang <geliangtang@...il.com>, linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] [media] netup_unidvb: use module_pci_driver
Use module_pci_driver() helper to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@...il.com>
---
drivers/media/pci/netup_unidvb/netup_unidvb_core.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/drivers/media/pci/netup_unidvb/netup_unidvb_core.c b/drivers/media/pci/netup_unidvb/netup_unidvb_core.c
index b078ac2..191bd82 100644
--- a/drivers/media/pci/netup_unidvb/netup_unidvb_core.c
+++ b/drivers/media/pci/netup_unidvb/netup_unidvb_core.c
@@ -1030,15 +1030,4 @@ static struct pci_driver netup_unidvb_pci_driver = {
.resume = NULL,
};
-static int __init netup_unidvb_init(void)
-{
- return pci_register_driver(&netup_unidvb_pci_driver);
-}
-
-static void __exit netup_unidvb_fini(void)
-{
- pci_unregister_driver(&netup_unidvb_pci_driver);
-}
-
-module_init(netup_unidvb_init);
-module_exit(netup_unidvb_fini);
+module_pci_driver(netup_unidvb_pci_driver);
--
2.9.3
Powered by blists - more mailing lists