提交 1bc6ea31 编写于 作者: U Uwe Kleine-König 提交者: Thierry Reding

pwm: imx1: Don't disable clocks at device remove time

The .remove() callback disables clocks that were not enabled in
.probe(). So just probing and then unbinding the driver results in a clk
enable imbalance.

So just drop the call to disable the clocks. (Which BTW was also in the
wrong order because the call makes the PWM unfunctional and so should
have come only after pwmchip_remove()).

Fixes: 9f4c8f96 ("pwm: imx: Add ipg clock operation")
Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
上级 9c6a02e6
...@@ -168,8 +168,6 @@ static int pwm_imx1_remove(struct platform_device *pdev) ...@@ -168,8 +168,6 @@ static int pwm_imx1_remove(struct platform_device *pdev)
{ {
struct pwm_imx1_chip *imx = platform_get_drvdata(pdev); struct pwm_imx1_chip *imx = platform_get_drvdata(pdev);
pwm_imx1_clk_disable_unprepare(&imx->chip);
return pwmchip_remove(&imx->chip); return pwmchip_remove(&imx->chip);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册