ath5k: Use module_platform_driver macro for ahb.c
authorSyam Sidhardhan <syamsidhardh@gmail.com>
Tue, 13 Nov 2012 15:39:50 +0000 (21:09 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Nov 2012 19:11:15 +0000 (14:11 -0500)
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>
drivers/net/wireless/ath/ath5k/ahb.c

index aec33cc..8e8bcc7 100644 (file)
@@ -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);