diff options
author | Devendra Naga <devendra.aaru@gmail.com> | 2012-08-29 13:33:01 -0400 |
---|---|---|
committer | Luciano Coelho <luca@coelho.fi> | 2012-09-27 04:44:40 -0400 |
commit | 77e7b30b23d3360f627e991aea8255fa9914dd55 (patch) | |
tree | 4f6d4ffc572946d2fff493106246a67100388acc /drivers/net/wireless/ti | |
parent | 944f8a1a6f5ff8b503f3544811d0aa4ac27dd2aa (diff) |
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
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Luciano Coelho <luca@coelho.fi>
Diffstat (limited to 'drivers/net/wireless/ti')
-rw-r--r-- | drivers/net/wireless/ti/wl18xx/main.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c index 31cf6eba3a9e..99364d4feac4 100644 --- a/drivers/net/wireless/ti/wl18xx/main.c +++ b/drivers/net/wireless/ti/wl18xx/main.c | |||
@@ -1538,18 +1538,7 @@ static struct platform_driver wl18xx_driver = { | |||
1538 | } | 1538 | } |
1539 | }; | 1539 | }; |
1540 | 1540 | ||
1541 | static int __init wl18xx_init(void) | 1541 | module_platform_driver(wl18xx_driver); |
1542 | { | ||
1543 | return platform_driver_register(&wl18xx_driver); | ||
1544 | } | ||
1545 | module_init(wl18xx_init); | ||
1546 | |||
1547 | static void __exit wl18xx_exit(void) | ||
1548 | { | ||
1549 | platform_driver_unregister(&wl18xx_driver); | ||
1550 | } | ||
1551 | module_exit(wl18xx_exit); | ||
1552 | |||
1553 | module_param_named(ht_mode, ht_mode_param, charp, S_IRUSR); | 1542 | module_param_named(ht_mode, ht_mode_param, charp, S_IRUSR); |
1554 | MODULE_PARM_DESC(ht_mode, "Force HT mode: wide or siso20"); | 1543 | MODULE_PARM_DESC(ht_mode, "Force HT mode: wide or siso20"); |
1555 | 1544 | ||