mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] [media] netup_unidvb: use module_pci_driver
@ 2016-11-16 13:00 Geliang Tang
  2016-11-16 13:00 ` [PATCH] scsi: a100u2w: " Geliang Tang
  2016-11-16 13:00 ` [PATCH] scsi: dmx3191d: " Geliang Tang
  0 siblings, 2 replies; 5+ messages in thread
From: Geliang Tang @ 2016-11-16 13:00 UTC (permalink / raw)
  To: Sergey Kozlov, Abylay Ospan, Mauro Carvalho Chehab
  Cc: Geliang Tang, linux-media, linux-kernel

Use module_pci_driver() helper to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-17  1:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-16 13:00 [PATCH] [media] netup_unidvb: use module_pci_driver Geliang Tang
2016-11-16 13:00 ` [PATCH] scsi: a100u2w: " Geliang Tang
2016-11-16 13:00 ` [PATCH] scsi: dmx3191d: " Geliang Tang
2016-11-16 22:56   ` Finn Thain
2016-11-17  1:44   ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®