net/ethernet/icplus/ipg: Use module_pci_driver to register driver
authorPeter Hüwe <PeterHuewe@gmx.de>
Tue, 21 May 2013 12:42:13 +0000 (12:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 May 2013 21:35:04 +0000 (14:35 -0700)
Removing some boilerplate by using module_pci_driver instead of calling
register and unregister in the otherwise empty init/exit functions.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/icplus/ipg.c

index 068d78151658819ba5a88895df55942d59134e83..1fde90b96685e878b12ffeee0abc8487845cb4da 100644 (file)
@@ -2298,15 +2298,4 @@ static struct pci_driver ipg_pci_driver = {
        .remove         = ipg_remove,
 };
 
-static int __init ipg_init_module(void)
-{
-       return pci_register_driver(&ipg_pci_driver);
-}
-
-static void __exit ipg_exit_module(void)
-{
-       pci_unregister_driver(&ipg_pci_driver);
-}
-
-module_init(ipg_init_module);
-module_exit(ipg_exit_module);
+module_pci_driver(ipg_pci_driver);