Commit c32f5bbb authored by Syam Sidhardhan's avatar Syam Sidhardhan Committed by John W. Linville

ath5k: Use module_platform_driver macro for ahb.c

Simplify the code by make use of module_platform_driver macro.
Signed-off-by: default avatarSyam Sidhardhan <s.syam@samsung.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent b126b027
...@@ -236,17 +236,4 @@ static struct platform_driver ath_ahb_driver = { ...@@ -236,17 +236,4 @@ static struct platform_driver ath_ahb_driver = {
}, },
}; };
static int __init module_platform_driver(ath_ahb_driver);
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);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment