pwm: imx1: Don't disable clocks at device remove time
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 25 May 2021 06:35:27 +0000 (08:35 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 28 Jun 2021 11:24:25 +0000 (13:24 +0200)
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: 9f4c8f9607c3 ("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>
drivers/pwm/pwm-imx1.c

index c957b36..e73858a 100644 (file)
@@ -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);
 }