drivers/net/irda/donauboe.c: convert to module_pci_driver
authorLibo Chen <clbchenlibo.chen@huawei.com>
Tue, 12 Aug 2014 20:31:54 +0000 (13:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Aug 2014 03:05:52 +0000 (20:05 -0700)
Signed-off-by: Libo Chen <libo.chen@huawei.com>
Cc: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/irda/donauboe.c

index 768dfe9a93159e4964d4b9c0bc6986da2e6c09b6..6d3e2093bf7f5575ce4360af9e0bdc7763bd11b1 100644 (file)
@@ -1755,17 +1755,4 @@ static struct pci_driver donauboe_pci_driver = {
        .resume         = toshoboe_wakeup 
 };
 
-static int __init
-donauboe_init (void)
-{
-  return pci_register_driver(&donauboe_pci_driver);
-}
-
-static void __exit
-donauboe_cleanup (void)
-{
-  pci_unregister_driver(&donauboe_pci_driver);
-}
-
-module_init(donauboe_init);
-module_exit(donauboe_cleanup);
+module_pci_driver(donauboe_pci_driver);