aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-zx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pwm/pwm-zx.c')
-rw-r--r--drivers/pwm/pwm-zx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-zx.c b/drivers/pwm/pwm-zx.c
index 5d27c16edfb1..0d4112410b69 100644
--- a/drivers/pwm/pwm-zx.c
+++ b/drivers/pwm/pwm-zx.c
@@ -241,6 +241,7 @@ static int zx_pwm_probe(struct platform_device *pdev)
ret = pwmchip_add(&zpc->chip);
if (ret < 0) {
dev_err(&pdev->dev, "failed to add PWM chip: %d\n", ret);
+ clk_disable_unprepare(zpc->pclk);
return ret;
}