]> 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>
Fri, 13 Sep 2013 21:52:03 +0000 (14:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Sep 2013 00:02:50 +0000 (20:02 -0400)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/he.c

index 449f6298dc8937a437ec1f7c4ab6283db3289c40..8557adcd34ee88a82cfb9a805859cba5ad79bef2 100644 (file)
@@ -2865,15 +2865,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);