diff options
author | Syam Sidhardhan <syamsidhardh@gmail.com> | 2012-11-13 10:39:50 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-11-16 14:11:15 -0500 |
commit | c32f5bbb00cf268f76e977d8cf9c75fa3a89c038 (patch) | |
tree | 3b9363b99c317e84be841f911edb5f3a8e6b3bb9 | |
parent | b126b02796eaac8534b699571bd4209e05b64146 (diff) |
ath5k: Use module_platform_driver macro for ahb.c
Simplify the code by make use of module_platform_driver macro.
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath5k/ahb.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ahb.c b/drivers/net/wireless/ath/ath5k/ahb.c index aec33cc207fd..8e8bcc7a4805 100644 --- a/drivers/net/wireless/ath/ath5k/ahb.c +++ b/drivers/net/wireless/ath/ath5k/ahb.c | |||
@@ -236,17 +236,4 @@ static struct platform_driver ath_ahb_driver = { | |||
236 | }, | 236 | }, |
237 | }; | 237 | }; |
238 | 238 | ||
239 | static int __init | 239 | module_platform_driver(ath_ahb_driver); |
240 | ath5k_ahb_init(void) | ||
241 | { | ||
242 | return platform_driver_register(&ath_ahb_driver); | ||
243 | } | ||
244 | |||
245 | static void __exit | ||
246 | ath5k_ahb_exit(void) | ||
247 | { | ||
248 | platform_driver_unregister(&ath_ahb_driver); | ||
249 | } | ||
250 | |||
251 | module_init(ath5k_ahb_init); | ||
252 | module_exit(ath5k_ahb_exit); | ||