mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
pwm: imx1: Don't disable clocks at device remove time
[ Upstream commit1bc6ea31cb
] 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:9f4c8f9607
("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>
This commit is contained in:
parent
aa51b6bc79
commit
aac6a79ee0
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue