Skip to content

Commit

Permalink
pwm: i.MX: Use module_platform_driver
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
  • Loading branch information
Sascha Hauer authored and Thierry Reding committed Sep 12, 2012
1 parent 66ad6a6 commit 208d038
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions drivers/pwm/pwm-imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,17 +271,7 @@ static struct platform_driver imx_pwm_driver = {
.remove = __devexit_p(imx_pwm_remove),
};

static int __init imx_pwm_init(void)
{
return platform_driver_register(&imx_pwm_driver);
}
arch_initcall(imx_pwm_init);

static void __exit imx_pwm_exit(void)
{
platform_driver_unregister(&imx_pwm_driver);
}
module_exit(imx_pwm_exit);
module_platform_driver(imx_pwm_driver);

MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Sascha Hauer <s.hauer@pengutronix.de>");

0 comments on commit 208d038

Please sign in to comment.