From: Syam Sidhardhan Date: Tue, 13 Nov 2012 15:39:50 +0000 (+0530) Subject: ath5k: Use module_platform_driver macro for ahb.c X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c32f5bbb00cf268f76e977d8cf9c75fa3a89c038;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: John W. Linville --- 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 = { }, }; -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);