net/ethernet/sis/sis190: Use module_pci_driver to register driver
authorPeter Hüwe <PeterHuewe@gmx.de>
Tue, 21 May 2013 12:42:10 +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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sis/sis190.c

index 9a9c379420d120049bb43e53da5849be904d234d..02df0894690d698c7234e8057a58714ad65a2915 100644 (file)
@@ -1934,15 +1934,4 @@ static struct pci_driver sis190_pci_driver = {
        .remove         = sis190_remove_one,
 };
 
-static int __init sis190_init_module(void)
-{
-       return pci_register_driver(&sis190_pci_driver);
-}
-
-static void __exit sis190_cleanup_module(void)
-{
-       pci_unregister_driver(&sis190_pci_driver);
-}
-
-module_init(sis190_init_module);
-module_exit(sis190_cleanup_module);
+module_pci_driver(sis190_pci_driver);