Skip to contentSkip to conversation

wl18xx: use module_platform_driver

PATCH Applied Devendra Naga 2 participants 2 messages Aug 29, 2012 – Sep 28, 2012 TI wilink wireless drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wl18xx: use module_platform_driver

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

---
 drivers/net/wireless/ti/wl18xx/main.c |   13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
drivers/net/wireless/ti/wl18xx/main.c +1 -12
index 69042bb..0b3e21b 100644
@@ -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");
 
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 6 lines · 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

---

Applied, thanks!

--
Luca.