Skip to content

Commit

Permalink
ath5k: Use module_platform_driver macro for ahb.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Syam Sidhardhan authored and John W. Linville committed Nov 16, 2012
1 parent b126b02 commit c32f5bb
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions drivers/net/wireless/ath/ath5k/ahb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit c32f5bb

Please sign in to comment.