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

gpio: omap : Add missing clk_unprepare().

omap_gpio_probe() can fail here and we must disable clock.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Arvind Yadav and committed by
Linus Walleij
e2c3c196 d829b37a

+2
+2
drivers/gpio/gpio-omap.c
··· 1247 1247 if (ret) { 1248 1248 pm_runtime_put_sync(dev); 1249 1249 pm_runtime_disable(dev); 1250 + if (bank->dbck_flag) 1251 + clk_unprepare(bank->dbck); 1250 1252 return ret; 1251 1253 } 1252 1254