Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7fdd3f5 authored by Johan Hovold's avatar Johan Hovold Committed by Thierry Reding
Browse files

pwm: tiehrpwm: Fix runtime PM imbalance at unbind



Remove unbalanced RPM put at driver unbind which resulted in a negative
usage count.

Fixes: 19891b20 ("pwm: pwm-tiehrpwm: PWM driver support for EHRPWM")
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent cd9b53da
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);
}