aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/realtek/r8169.c
diff options
context:
space:
mode:
authorDevendra Naga <devendra.aaru@gmail.com>2012-10-26 05:27:42 -0400
committerDavid S. Miller <davem@davemloft.net>2012-10-31 13:56:39 -0400
commit3eeb7da909d93cc290a6a7f07cff53c896618e9d (patch)
treec3f94f6f29f8aed66877078d137d730424fb71e7 /drivers/net/ethernet/realtek/r8169.c
parent157083811c933fc223a3193d319c7ac805f30bb7 (diff)
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/r8169.c')
-rw-r--r--drivers/net/ethernet/realtek/r8169.c13
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 = {
7023 .driver.pm = RTL8169_PM_OPS, 7023 .driver.pm = RTL8169_PM_OPS,
7024}; 7024};
7025 7025
7026static int __init rtl8169_init_module(void) 7026module_pci_driver(rtl8169_pci_driver);
7027{
7028 return pci_register_driver(&rtl8169_pci_driver);
7029}
7030
7031static void __exit rtl8169_cleanup_module(void)
7032{
7033 pci_unregister_driver(&rtl8169_pci_driver);
7034}
7035
7036module_init(rtl8169_init_module);
7037module_exit(rtl8169_cleanup_module);