summaryrefslogtreecommitdiffstats
path: root/drivers/pwm
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-05-25 08:35:27 +0200
committerThierry Reding <thierry.reding@gmail.com>2021-06-28 13:24:25 +0200
commit1bc6ea31cb41d50302a3c9b401964cf0a88d41f9 (patch)
tree93d957f0a66ed577e503edd04cd07e83071d5c96 /drivers/pwm
parentpwm: clps711x: Simplify using devm_pwmchip_add() (diff)
downloadlinux-1bc6ea31cb41d50302a3c9b401964cf0a88d41f9.tar.xz
linux-1bc6ea31cb41d50302a3c9b401964cf0a88d41f9.zip
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: 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>
Diffstat (limited to 'drivers/pwm')
-rw-r--r--drivers/pwm/pwm-imx1.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pwm/pwm-imx1.c b/drivers/pwm/pwm-imx1.c
index c957b365448e..e73858a8e464 100644
--- a/drivers/pwm/pwm-imx1.c
+++ b/drivers/pwm/pwm-imx1.c
@@ -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);
}