* [PATCH] realtek: r8169: use module_pci_driver macro
@ 2012-10-26 19:27 Devendra Naga
2012-10-31 18:04 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Devendra Naga @ 2012-10-26 19:27 UTC (permalink / raw)
To: Francois Romieu, netdev; +Cc: Devendra Naga
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>
---
drivers/net/ethernet/realtek/r8169.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
index 2317b8c..123c6a5 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);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] realtek: r8169: use module_pci_driver macro
2012-10-26 19:27 [PATCH] realtek: r8169: use module_pci_driver macro Devendra Naga
@ 2012-10-31 18:04 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-10-31 18:04 UTC (permalink / raw)
To: devendra.aaru; +Cc: romieu, netdev
From: Devendra Naga <devendra.aaru@gmail.com>
Date: Fri, 26 Oct 2012 15:27:42 -0400
> 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>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-31 18:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-26 19:27 [PATCH] realtek: r8169: use module_pci_driver macro Devendra Naga
2012-10-31 18:04 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).