diff options
author | Peter Hüwe <PeterHuewe@gmx.de> | 2013-05-21 12:42:13 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-22 14:35:04 -0700 |
commit | 43d426c3f938b9ac21f452fcd22956ed2f526f4f (patch) | |
tree | 85295930c313721740b1ef8b847394bbac447a91 | |
parent | b6f5721087e72d11ff3daab565afddc5918c024b (diff) | |
download | op-kernel-dev-43d426c3f938b9ac21f452fcd22956ed2f526f4f.zip op-kernel-dev-43d426c3f938b9ac21f452fcd22956ed2f526f4f.tar.gz |
net/ethernet/icplus/ipg: 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>
-rw-r--r-- | drivers/net/ethernet/icplus/ipg.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/ethernet/icplus/ipg.c b/drivers/net/ethernet/icplus/ipg.c index 068d781..1fde90b 100644 --- a/drivers/net/ethernet/icplus/ipg.c +++ b/drivers/net/ethernet/icplus/ipg.c @@ -2298,15 +2298,4 @@ static struct pci_driver ipg_pci_driver = { .remove = ipg_remove, }; -static int __init ipg_init_module(void) -{ - return pci_register_driver(&ipg_pci_driver); -} - -static void __exit ipg_exit_module(void) -{ - pci_unregister_driver(&ipg_pci_driver); -} - -module_init(ipg_init_module); -module_exit(ipg_exit_module); +module_pci_driver(ipg_pci_driver); |