summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibo Chen <clbchenlibo.chen@huawei.com>2013-08-08 12:55:47 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2013-08-08 12:55:47 +1000
commit011846338cf6bd4b5f71bbf2904b11c7eddabec6 (patch)
tree126798c18c8e56729e6e0aca922433ecc560389c
parentb9afce73bc2eab8353e128edf60877d3c54bcdb0 (diff)
drivers/atm/he.c: convert to module_pci_driver
Signed-off-by: Libo Chen <libo.chen@huawei.com> Cc: Chas Williams <chas@cmf.nrl.navy.mil> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--drivers/atm/he.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/atm/he.c b/drivers/atm/he.c
index 507362a76a73..80f9743f596a 100644
--- a/drivers/atm/he.c
+++ b/drivers/atm/he.c
@@ -2872,15 +2872,4 @@ static struct pci_driver he_driver = {
.id_table = he_pci_tbl,
};
-static int __init he_init(void)
-{
- return pci_register_driver(&he_driver);
-}
-
-static void __exit he_cleanup(void)
-{
- pci_unregister_driver(&he_driver);
-}
-
-module_init(he_init);
-module_exit(he_cleanup);
+module_pci_driver(he_driver);