From 4d2c1bdce8a7f93bb49a5ba03677ab72135b7297 Mon Sep 17 00:00:00 2001 From: Libo Chen Date: Wed, 14 May 2014 10:01:25 +1000 Subject: [PATCH] drivers/net/irda/donauboe.c: convert to module_pci_driver Signed-off-by: Libo Chen Cc: Samuel Ortiz Signed-off-by: Andrew Morton --- drivers/net/irda/donauboe.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/net/irda/donauboe.c b/drivers/net/irda/donauboe.c index 768dfe9a9315..6d3e2093bf7f 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); -- 2.39.5