Commit e2c3c196 authored by Arvind Yadav's avatar Arvind Yadav Committed by Linus Walleij

gpio: omap : Add missing clk_unprepare().

omap_gpio_probe() can fail here and we must disable clock.
Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Reviewed-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent d829b37a
...@@ -1247,6 +1247,8 @@ static int omap_gpio_probe(struct platform_device *pdev) ...@@ -1247,6 +1247,8 @@ static int omap_gpio_probe(struct platform_device *pdev)
if (ret) { if (ret) {
pm_runtime_put_sync(dev); pm_runtime_put_sync(dev);
pm_runtime_disable(dev); pm_runtime_disable(dev);
if (bank->dbck_flag)
clk_unprepare(bank->dbck);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment