]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/net/irda/donauboe.c: convert to module_pci_driver
authorLibo Chen <clbchenlibo.chen@huawei.com>
Tue, 5 Nov 2013 05:54:59 +0000 (16:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:54:59 +0000 (16:54 +1100)
Signed-off-by: Libo Chen <libo.chen@huawei.com>
Cc: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/net/irda/donauboe.c

index 31bcb98ef35609b9f0be24cfc63bcd4fd43ae852..bef2243e79946ae9ef7e742e4c950136eca63cf0 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);