diff options
author | Peter Hüwe <PeterHuewe@gmx.de> | 2013-05-21 12:58:10 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-22 14:35:05 -0700 |
commit | a46e6ccdd1cd557cbb9a24022ee027d09a4bd625 (patch) | |
tree | fe7b6db5a9b2269ec4ae64106ef29b2826c213cd | |
parent | 5119ad0b7388641815bad0bacdc5133532d24685 (diff) | |
download | op-kernel-dev-a46e6ccdd1cd557cbb9a24022ee027d09a4bd625.zip op-kernel-dev-a46e6ccdd1cd557cbb9a24022ee027d09a4bd625.tar.gz |
net/ethernet/amd/amd8111e: 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/amd/amd8111e.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/ethernet/amd/amd8111e.c b/drivers/net/ethernet/amd/amd8111e.c index 8e6b665..bc71aec 100644 --- a/drivers/net/ethernet/amd/amd8111e.c +++ b/drivers/net/ethernet/amd/amd8111e.c @@ -1981,15 +1981,4 @@ static struct pci_driver amd8111e_driver = { .resume = amd8111e_resume }; -static int __init amd8111e_init(void) -{ - return pci_register_driver(&amd8111e_driver); -} - -static void __exit amd8111e_cleanup(void) -{ - pci_unregister_driver(&amd8111e_driver); -} - -module_init(amd8111e_init); -module_exit(amd8111e_cleanup); +module_pci_driver(amd8111e_driver); |