]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/atm/he.c: convert to module_pci_driver
authorLibo Chen <clbchenlibo.chen@huawei.com>
Thu, 18 Jul 2013 23:56:34 +0000 (09:56 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 18 Jul 2013 23:56:34 +0000 (09:56 +1000)
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>
drivers/atm/he.c

index 507362a76a736b624aab235bf614b2830d677239..80f9743f596aff0e0733fa92672e1d724ab38097 100644 (file)
@@ -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);