diff options
author | Devendra Naga <devendra.aaru@gmail.com> | 2012-10-26 13:27:42 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-31 21:56:39 +0400 |
commit | 3eeb7da909d93cc290a6a7f07cff53c896618e9d (patch) | |
tree | c3f94f6f29f8aed66877078d137d730424fb71e7 /drivers/net/ethernet/realtek | |
parent | 157083811c933fc223a3193d319c7ac805f30bb7 (diff) | |
download | linux-3eeb7da909d93cc290a6a7f07cff53c896618e9d.tar.xz |
realtek: r8169: use module_pci_driver macro
use the module_pci_driver macro to make the code simpler
by eliminating the module_init and module_exit calls
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/realtek')
-rw-r--r-- | drivers/net/ethernet/realtek/r8169.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 2317b8cd25fd..123c6a5c5fe6 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++ b/drivers/net/ethernet/realtek/r8169.c @@ -7023,15 +7023,4 @@ static struct pci_driver rtl8169_pci_driver = { .driver.pm = RTL8169_PM_OPS, }; -static int __init rtl8169_init_module(void) -{ - return pci_register_driver(&rtl8169_pci_driver); -} - -static void __exit rtl8169_cleanup_module(void) -{ - pci_unregister_driver(&rtl8169_pci_driver); -} - -module_init(rtl8169_init_module); -module_exit(rtl8169_cleanup_module); +module_pci_driver(rtl8169_pci_driver); |