net/ethernet/dec/tulip/xircom_cb: Use module_pci_driver to register driver
authorPeter Hüwe <PeterHuewe@gmx.de>
Tue, 21 May 2013 12:42:11 +0000 (12:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 May 2013 21:35:03 +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>
Reviewed-by: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dec/tulip/xircom_cb.c

index cdbcd16431411bf48ad3cf459c8cb12f3adbf537..9b84cb04fe5fccded9f26fe010cf16ea6bb36c8a 100644 (file)
@@ -1171,16 +1171,4 @@ investigate_write_descriptor(struct net_device *dev,
        }
 }
 
-static int __init xircom_init(void)
-{
-       return pci_register_driver(&xircom_ops);
-}
-
-static void __exit xircom_exit(void)
-{
-       pci_unregister_driver(&xircom_ops);
-}
-
-module_init(xircom_init)
-module_exit(xircom_exit)
-
+module_pci_driver(xircom_ops);