Message ID | 53ea79ba.8fEEEBaYTgGJgBaz%akpm@linux-foundation.org |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: akpm@linux-foundation.org Date: Tue, 12 Aug 2014 13:31:54 -0700 > From: Libo Chen <clbchenlibo.chen@huawei.com> > Subject: drivers/net/irda/donauboe.c: convert to module_pci_driver > > Signed-off-by: Libo Chen <libo.chen@huawei.com> > Cc: Samuel Ortiz <samuel@sortiz.org> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff -puN drivers/net/irda/donauboe.c~drivers-net-irda-donauboe-convert-to-module_pci_driver drivers/net/irda/donauboe.c --- a/drivers/net/irda/donauboe.c~drivers-net-irda-donauboe-convert-to-module_pci_driver +++ a/drivers/net/irda/donauboe.c @@ -1755,17 +1755,4 @@ static struct pci_driver donauboe_pci_dr .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);