summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sis
diff options
context:
space:
mode:
authorPeter Hüwe <PeterHuewe@gmx.de>2013-05-21 12:42:10 +0000
committerDavid S. Miller <davem@davemloft.net>2013-05-22 14:35:03 -0700
commit52a58f9df12ab03bda432b398a4bdfcc9ed2b414 (patch)
treed948734e0f554d43bd4ba82cd0e8b13bf0024381 /drivers/net/ethernet/sis
parentc996f4e8f053ddab28fa196e5b18bdd93e8ee3a2 (diff)
downloadlinux-52a58f9df12ab03bda432b398a4bdfcc9ed2b414.tar.bz2
net/ethernet/sis/sis190: Use module_pci_driver to register driver
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>
Diffstat (limited to 'drivers/net/ethernet/sis')
-rw-r--r--drivers/net/ethernet/sis/sis190.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/ethernet/sis/sis190.c b/drivers/net/ethernet/sis/sis190.c
index 9a9c379420d1..02df0894690d 100644
--- a/drivers/net/ethernet/sis/sis190.c
+++ b/drivers/net/ethernet/sis/sis190.c
@@ -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);