Skip to content

Commit

Permalink
pwm: imx1: Don't disable clocks at device remove time
Browse files Browse the repository at this point in the history
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: 9f4c8f9 ("pwm: imx: Add ipg clock operation")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
  • Loading branch information
ukleinek authored and thierryreding committed Jun 28, 2021
1 parent 9c6a02e commit 1bc6ea3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/pwm/pwm-imx1.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ static int pwm_imx1_remove(struct platform_device *pdev)
{
struct pwm_imx1_chip *imx = platform_get_drvdata(pdev);

pwm_imx1_clk_disable_unprepare(&imx->chip);

return pwmchip_remove(&imx->chip);
}

Expand Down

0 comments on commit 1bc6ea3

Please sign in to comment.