summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2016-11-16 11:00:56 -0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-11-22 16:30:03 -0200
commit8ccd22db927995313a9ab3526c1765c7c157f3e9 (patch)
tree8e7e7f928edab30b603bb8805def98dd9d9757ab /drivers/media
parentd08876f524a605d64c7ca32cb8e9f5be3839e82e (diff)
[media] netup_unidvb: use module_pci_driver
Use module_pci_driver() helper to simplify the code. Signed-off-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/pci/netup_unidvb/netup_unidvb_core.c13
1 files changed, 1 insertions, 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 b078ac2a682c..191bd8299dc3 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);