* [PATCH] wl18xx: use module_platform_driver
@ 2012-08-29 17:33 Devendra Naga
2012-09-28 8:49 ` Luciano Coelho
0 siblings, 1 reply; 2+ messages in thread
From: Devendra Naga @ 2012-08-29 17:33 UTC (permalink / raw)
To: Luciano Coelho, John W. Linville, Arik Nemtsov, Ido Reis,
linux-wireless
Cc: Devendra Naga
the driver's init and exit routines can be implemented with the
module_platform_driver, as the init and exit code is same as
that of the module_platform_driver
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
---
drivers/net/wireless/ti/wl18xx/main.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c
index 69042bb..0b3e21b 100644
--- a/drivers/net/wireless/ti/wl18xx/main.c
+++ b/drivers/net/wireless/ti/wl18xx/main.c
@@ -1539,18 +1539,7 @@ static struct platform_driver wl18xx_driver = {
}
};
-static int __init wl18xx_init(void)
-{
- return platform_driver_register(&wl18xx_driver);
-}
-module_init(wl18xx_init);
-
-static void __exit wl18xx_exit(void)
-{
- platform_driver_unregister(&wl18xx_driver);
-}
-module_exit(wl18xx_exit);
-
+module_platform_driver(wl18xx_driver);
module_param_named(ht_mode, ht_mode_param, charp, S_IRUSR);
MODULE_PARM_DESC(ht_mode, "Force HT mode: wide or siso20");
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] wl18xx: use module_platform_driver
2012-08-29 17:33 [PATCH] wl18xx: use module_platform_driver Devendra Naga
@ 2012-09-28 8:49 ` Luciano Coelho
0 siblings, 0 replies; 2+ messages in thread
From: Luciano Coelho @ 2012-09-28 8:49 UTC (permalink / raw)
To: Devendra Naga; +Cc: John W. Linville, Arik Nemtsov, Ido Reis, linux-wireless
On Wed, 2012-08-29 at 23:03 +0530, Devendra Naga wrote:
> the driver's init and exit routines can be implemented with the
> module_platform_driver, as the init and exit code is same as
> that of the module_platform_driver
>
> Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
> ---
Applied, thanks!
--
Luca.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-28 8:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-29 17:33 [PATCH] wl18xx: use module_platform_driver Devendra Naga
2012-09-28 8:49 ` Luciano Coelho
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).