dlink: dl2k: use the module_pci_driver macro
authorDevendra Naga <devendra.aaru@gmail.com>
Fri, 26 Oct 2012 09:29:00 +0000 (09:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Oct 2012 17:56:39 +0000 (13:56 -0400)
use the module_pci_driver macro to make the code simpler
by eliminating module_init and module_exit calls.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dlink/dl2k.c

index a059f0c27e28f19251a282b36f35b1254e90b273..2fb01bf181555f15f0f3557ba0a11f9c59086faa 100644 (file)
@@ -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: