drivers/pcmcia/pd6729.c: convert to module_pci_driver
authorLibo Chen <libo.chen@huawei.com>
Fri, 13 Sep 2013 21:49:41 +0000 (14:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 15:54:25 +0000 (08:54 -0700)
Use module_pci_driver instead of init/exit, make code clean.

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Eric Miao <eric.y.miao@gmail.com>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pcmcia/pd6729.c

index a4c16ee..622dd6f 100644 (file)
@@ -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);