summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibo Chen <libo.chen@huawei.com>2013-08-08 12:55:41 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2013-08-08 12:55:41 +1000
commit425bf8f0cb8be64274365d2370a07f95c6b69b0e (patch)
tree3bb1d42e77a07b653ebc60c821ca561f5005d47f
parent5c51306c2de2fd29da4fe8f4648fe902d7838445 (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>
-rw-r--r--drivers/pcmcia/yenta_socket.c16
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 = {
.driver.pm = YENTA_PM_OPS,
};
-
-static int __init yenta_socket_init(void)
-{
- return pci_register_driver(&yenta_cardbus_driver);
-}
-
-
-static void __exit yenta_socket_exit(void)
-{
- pci_unregister_driver(&yenta_cardbus_driver);
-}
-
-
-module_init(yenta_socket_init);
-module_exit(yenta_socket_exit);
+module_pci_driver(yenta_cardbus_driver);
MODULE_LICENSE("GPL");