From: Geliang Tang Date: Wed, 16 Nov 2016 13:00:56 +0000 (-0200) Subject: [media] netup_unidvb: use module_pci_driver X-Git-Tag: v5.15~10718^2~1037 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ccd22db927995313a9ab3526c1765c7c157f3e9;p=platform%2Fkernel%2Flinux-starfive.git [media] netup_unidvb: use module_pci_driver Use module_pci_driver() helper to simplify the code. Signed-off-by: Geliang Tang Signed-off-by: Mauro Carvalho Chehab --- 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);