diff options
author | Peter Hüwe <PeterHuewe@gmx.de> | 2013-05-21 12:58:08 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-22 21:35:04 (GMT) |
commit | 70a611debe964ae508d67528d82ca7fa0715f5a3 (patch) | |
tree | d7da3947754d6070a08de137b902bd726e5b1162 /drivers | |
parent | e0fc4441f98e19d8120f2a385c9e75bc55369b81 (diff) | |
download | linux-70a611debe964ae508d67528d82ca7fa0715f5a3.tar.xz |
net/ethernet/qlogic/qlge/qlge_main: 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/qlogic/qlge/qlge_main.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/ethernet/qlogic/qlge/qlge_main.c b/drivers/net/ethernet/qlogic/qlge/qlge_main.c index 50235d2..e04d471 100644 --- a/drivers/net/ethernet/qlogic/qlge/qlge_main.c +++ b/drivers/net/ethernet/qlogic/qlge/qlge_main.c @@ -4945,15 +4945,4 @@ static struct pci_driver qlge_driver = { .err_handler = &qlge_err_handler }; -static int __init qlge_init_module(void) -{ - return pci_register_driver(&qlge_driver); -} - -static void __exit qlge_exit(void) -{ - pci_unregister_driver(&qlge_driver); -} - -module_init(qlge_init_module); -module_exit(qlge_exit); +module_pci_driver(qlge_driver); |