summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k
diff options
context:
space:
mode:
authorSyam Sidhardhan <syamsidhardh@gmail.com>2012-11-13 21:09:50 +0530
committerJohn W. Linville <linville@tuxdriver.com>2012-11-16 14:11:15 -0500
commitc32f5bbb00cf268f76e977d8cf9c75fa3a89c038 (patch)
tree3b9363b99c317e84be841f911edb5f3a8e6b3bb9 /drivers/net/wireless/ath/ath5k
parentb126b02796eaac8534b699571bd4209e05b64146 (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>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k')
-rw-r--r--drivers/net/wireless/ath/ath5k/ahb.c15
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 aec33cc207f..8e8bcc7a480 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 = {
},
};
-static int __init
-ath5k_ahb_init(void)
-{
- return platform_driver_register(&ath_ahb_driver);
-}
-
-static void __exit
-ath5k_ahb_exit(void)
-{
- platform_driver_unregister(&ath_ahb_driver);
-}
-
-module_init(ath5k_ahb_init);
-module_exit(ath5k_ahb_exit);
+module_platform_driver(ath_ahb_driver);