diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-05-25 08:35:27 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-20 16:05:52 +0200 |
commit | 527bb29eb183cf1339164d2cc5c7b8aca625bb82 (patch) | |
tree | dcb846d5d511d967e2dd41e09bfa7bcca1e51bc5 | |
parent | 12d84de59da09da82e2c020de701affcc1e1b11e (diff) | |
download | linux-stable-527bb29eb183cf1339164d2cc5c7b8aca625bb82.tar.gz linux-stable-527bb29eb183cf1339164d2cc5c7b8aca625bb82.tar.bz2 linux-stable-527bb29eb183cf1339164d2cc5c7b8aca625bb82.zip |
pwm: imx1: Don't disable clocks at device remove time
[ Upstream commit 1bc6ea31cb41d50302a3c9b401964cf0a88d41f9 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/pwm/pwm-imx1.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pwm/pwm-imx1.c b/drivers/pwm/pwm-imx1.c index f8b2c2e001a7..c17652c40e14 100644 --- a/drivers/pwm/pwm-imx1.c +++ b/drivers/pwm/pwm-imx1.c @@ -180,8 +180,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); } |