From: Johan Hovold Date: Thu, 20 Jul 2017 10:48:16 +0000 (+0200) Subject: pwm: tiehrpwm: Fix runtime PM imbalance at unbind X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c7fdd3f52944b81d807ce7a5fde7d1ca8a2a0919;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git pwm: tiehrpwm: Fix runtime PM imbalance at unbind Remove unbalanced RPM put at driver unbind which resulted in a negative usage count. Fixes: 19891b20e7c2 ("pwm: pwm-tiehrpwm: PWM driver support for EHRPWM") Signed-off-by: Johan Hovold Signed-off-by: Thierry Reding --- diff --git a/drivers/pwm/pwm-tiehrpwm.c b/drivers/pwm/pwm-tiehrpwm.c index b5c6b0636893..6e51a075d1a7 100644 --- a/drivers/pwm/pwm-tiehrpwm.c +++ b/drivers/pwm/pwm-tiehrpwm.c @@ -504,7 +504,6 @@ static int ehrpwm_pwm_remove(struct platform_device *pdev) clk_unprepare(pc->tbclk); - pm_runtime_put_sync(&pdev->dev); pm_runtime_disable(&pdev->dev); return pwmchip_remove(&pc->chip); }