diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-08-28 02:27:40 -0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@avionic-design.de> | 2012-09-12 08:25:05 -0400 |
commit | 208d038f4792b5ca0dc76deebbc0ae13b4f1a744 (patch) | |
tree | f614881c8797feb94e76b83eb723bc38378c0968 | |
parent | 66ad6a613abeeeabc5217a0498fae63205e8ddb8 (diff) |
pwm: i.MX: Use module_platform_driver
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>
-rw-r--r-- | drivers/pwm/pwm-imx.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c index 13d4d22f12cf..a1e799ee07de 100644 --- a/drivers/pwm/pwm-imx.c +++ b/drivers/pwm/pwm-imx.c | |||
@@ -271,17 +271,7 @@ static struct platform_driver imx_pwm_driver = { | |||
271 | .remove = __devexit_p(imx_pwm_remove), | 271 | .remove = __devexit_p(imx_pwm_remove), |
272 | }; | 272 | }; |
273 | 273 | ||
274 | static int __init imx_pwm_init(void) | 274 | module_platform_driver(imx_pwm_driver); |
275 | { | ||
276 | return platform_driver_register(&imx_pwm_driver); | ||
277 | } | ||
278 | arch_initcall(imx_pwm_init); | ||
279 | |||
280 | static void __exit imx_pwm_exit(void) | ||
281 | { | ||
282 | platform_driver_unregister(&imx_pwm_driver); | ||
283 | } | ||
284 | module_exit(imx_pwm_exit); | ||
285 | 275 | ||
286 | MODULE_LICENSE("GPL v2"); | 276 | MODULE_LICENSE("GPL v2"); |
287 | MODULE_AUTHOR("Sascha Hauer <s.hauer@pengutronix.de>"); | 277 | MODULE_AUTHOR("Sascha Hauer <s.hauer@pengutronix.de>"); |