diff options
author | Libo Chen <libo.chen@huawei.com> | 2013-09-13 17:49:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 11:54:25 -0400 |
commit | ae647589a419d65778a7d06bd608a6fd526676e4 (patch) | |
tree | cb2a50c3c18f1c447582fde928e59f8c76d44f97 | |
parent | 3173463418af18b6c7b30bc6a94777780129291d (diff) |
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 <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>
-rw-r--r-- | drivers/pcmcia/pd6729.c | 13 |
1 files changed, 1 insertions, 12 deletions
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 = { | |||
777 | .remove = pd6729_pci_remove, | 777 | .remove = pd6729_pci_remove, |
778 | }; | 778 | }; |
779 | 779 | ||
780 | static int pd6729_module_init(void) | 780 | module_pci_driver(pd6729_pci_driver); |
781 | { | ||
782 | return pci_register_driver(&pd6729_pci_driver); | ||
783 | } | ||
784 | |||
785 | static void pd6729_module_exit(void) | ||
786 | { | ||
787 | pci_unregister_driver(&pd6729_pci_driver); | ||
788 | } | ||
789 | |||
790 | module_init(pd6729_module_init); | ||
791 | module_exit(pd6729_module_exit); | ||