From: Libo Chen Date: Fri, 13 Sep 2013 21:49:41 +0000 (-0700) Subject: drivers/pcmcia/pd6729.c: convert to module_pci_driver X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ae647589a419d65778a7d06bd608a6fd526676e4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drivers/pcmcia/pd6729.c: convert to module_pci_driver Use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen Cc: Bill Pemberton Cc: Eric Miao Cc: Dominik Brodowski Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/pcmcia/pd6729.c b/drivers/pcmcia/pd6729.c index a4c16ee5c718..622dd6fe7347 100644 --- a/drivers/pcmcia/pd6729.c +++ b/drivers/pcmcia/pd6729.c @@ -777,15 +777,4 @@ static struct pci_driver pd6729_pci_driver = { .remove = pd6729_pci_remove, }; -static int pd6729_module_init(void) -{ - return pci_register_driver(&pd6729_pci_driver); -} - -static void pd6729_module_exit(void) -{ - pci_unregister_driver(&pd6729_pci_driver); -} - -module_init(pd6729_module_init); -module_exit(pd6729_module_exit); +module_pci_driver(pd6729_pci_driver);