From: Libo Chen Date: Wed, 19 Jun 2013 00:05:43 +0000 (+1000) Subject: drivers/net/irda/donauboe.c: convert to module_pci_driver X-Git-Tag: next-20130619~2^2~587 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=46eef7b36c41a3e259fedf493c1ab121503ac5c0;p=karo-tx-linux.git drivers/net/irda/donauboe.c: convert to module_pci_driver Signed-off-by: Libo Chen Cc: Samuel Ortiz Signed-off-by: Andrew Morton --- diff --git a/drivers/net/irda/donauboe.c b/drivers/net/irda/donauboe.c index 510b9c8d23a9..c6bfc4ad8b50 100644 --- a/drivers/net/irda/donauboe.c +++ b/drivers/net/irda/donauboe.c @@ -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);