diff options
author | Libo Chen <libo.chen@huawei.com> | 2013-09-13 17:49:42 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 11:56:34 -0400 |
commit | 7d19143fe6bc928aab9968fd47fe39b4996a3297 (patch) | |
tree | ea805cbe2c6b94ed46429f7b1bbce11db788d95d /drivers/pcmcia/yenta_socket.c | |
parent | ae647589a419d65778a7d06bd608a6fd526676e4 (diff) |
drivers/pcmcia/yenta_socket.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: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Eric Miao <eric.y.miao@gmail.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pcmcia/yenta_socket.c')
-rw-r--r-- | drivers/pcmcia/yenta_socket.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/pcmcia/yenta_socket.c b/drivers/pcmcia/yenta_socket.c index 6b4ff099fb13..dc18a3a5e010 100644 --- a/drivers/pcmcia/yenta_socket.c +++ b/drivers/pcmcia/yenta_socket.c | |||
@@ -1439,20 +1439,6 @@ static struct pci_driver yenta_cardbus_driver = { | |||
1439 | .driver.pm = YENTA_PM_OPS, | 1439 | .driver.pm = YENTA_PM_OPS, |
1440 | }; | 1440 | }; |
1441 | 1441 | ||
1442 | 1442 | module_pci_driver(yenta_cardbus_driver); | |
1443 | static int __init yenta_socket_init(void) | ||
1444 | { | ||
1445 | return pci_register_driver(¥ta_cardbus_driver); | ||
1446 | } | ||
1447 | |||
1448 | |||
1449 | static void __exit yenta_socket_exit(void) | ||
1450 | { | ||
1451 | pci_unregister_driver(¥ta_cardbus_driver); | ||
1452 | } | ||
1453 | |||
1454 | |||
1455 | module_init(yenta_socket_init); | ||
1456 | module_exit(yenta_socket_exit); | ||
1457 | 1443 | ||
1458 | MODULE_LICENSE("GPL"); | 1444 | MODULE_LICENSE("GPL"); |