pwm: tiehrpwm: Fix runtime PM imbalance at unbind
authorJohan Hovold <johan@kernel.org>
Thu, 20 Jul 2017 10:48:16 +0000 (12:48 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 21 Aug 2017 06:11:25 +0000 (08:11 +0200)
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 <johan@kernel.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-tiehrpwm.c

index b5c6b06368934044f36be06b11051290d6bfdad7..6e51a075d1a769b85ccedeebe94b5e11d09406a3 100644 (file)
@@ -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);
 }