summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPeter Hüwe <PeterHuewe@gmx.de>2013-05-21 12:58:09 (GMT)
committerDavid S. Miller <davem@davemloft.net>2013-05-22 21:35:05 (GMT)
commit5119ad0b7388641815bad0bacdc5133532d24685 (patch)
tree61c68b878756826f46f4f1444ae57c1599326c30 /drivers
parent70a611debe964ae508d67528d82ca7fa0715f5a3 (diff)
downloadlinux-5119ad0b7388641815bad0bacdc5133532d24685.tar.xz
net/ethernet/sun/sungem: 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')
-rw-r--r--drivers/net/ethernet/sun/sungem.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/ethernet/sun/sungem.c b/drivers/net/ethernet/sun/sungem.c
index 5f3f9d5..e62df2b 100644
--- a/drivers/net/ethernet/sun/sungem.c
+++ b/drivers/net/ethernet/sun/sungem.c
@@ -3028,15 +3028,4 @@ static struct pci_driver gem_driver = {
#endif /* CONFIG_PM */
};
-static int __init gem_init(void)
-{
- return pci_register_driver(&gem_driver);
-}
-
-static void __exit gem_cleanup(void)
-{
- pci_unregister_driver(&gem_driver);
-}
-
-module_init(gem_init);
-module_exit(gem_cleanup);
+module_pci_driver(gem_driver);