Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pwm: vt8500: Undo preparation of a clock source.

Undo preparation of a clock source if vt8500_pwm_probe() is not
successful.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>

authored by

Arvind Yadav and committed by
Thierry Reding
0bd24f9b 0829326a

+1
+1
drivers/pwm/pwm-vt8500.c
··· 241 241 ret = pwmchip_add(&chip->chip); 242 242 if (ret < 0) { 243 243 dev_err(&pdev->dev, "failed to add PWM chip\n"); 244 + clk_unprepare(chip->clk); 244 245 return ret; 245 246 } 246 247