提交 208d038f 编写于 作者: S Sascha Hauer 提交者: Thierry Reding

pwm: i.MX: Use module_platform_driver

Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: NShawn Guo <shawn.guo@linaro.org>
Reviewed-by: NBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Signed-off-by: NThierry Reding <thierry.reding@avionic-design.de>
上级 66ad6a61
......@@ -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>");
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册