Skip to contentSkip to conversation

dlink: dl2k: use the module_pci_driver macro

PATCH Applied Devendra Naga 2 participants 2 messages Oct 26, 2012 – Oct 31, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dlink: dl2k: use the module_pci_driver macro

use the module_pci_driver macro to make the code simpler by eliminating module_init and module_exit calls.

---
 drivers/net/ethernet/dlink/dl2k.c |   16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)
drivers/net/ethernet/dlink/dl2k.c +1 -15
index a059f0c..2fb01bf 100644
@@ -1758,21 +1758,7 @@ static struct pci_driver rio_driver = {
 	.remove		= __devexit_p(rio_remove1),
 };
 
-static int __init
-rio_init (void)
-{
-	return pci_register_driver(&rio_driver);
-}
-
-static void __exit
-rio_exit (void)
-{
-	pci_unregister_driver (&rio_driver);
-}
-
-module_init (rio_init);
-module_exit (rio_exit);
-
+module_pci_driver(rio_driver);
 /*
 
 Compile command:
Signature · 1 line
1.7.9.5