diff options
author | Johan Hovold <johan@kernel.org> | 2017-07-20 12:48:16 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2017-08-21 08:11:25 +0200 |
commit | c7fdd3f52944b81d807ce7a5fde7d1ca8a2a0919 (patch) | |
tree | 12138aa6f1234e5381468669871caf97d0897a13 /drivers/pwm | |
parent | cd9b53daafaa635219b46a79f00177ddd3081e4f (diff) | |
download | op-kernel-dev-c7fdd3f52944b81d807ce7a5fde7d1ca8a2a0919.zip op-kernel-dev-c7fdd3f52944b81d807ce7a5fde7d1ca8a2a0919.tar.gz |
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 <johan@kernel.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/pwm-tiehrpwm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-tiehrpwm.c b/drivers/pwm/pwm-tiehrpwm.c index b5c6b06..6e51a07 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); } |