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

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

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1247,6 +1247,8 @@ static int omap_gpio_probe(struct platform_device *pdev)
	if (ret) {
		pm_runtime_put_sync(dev);
		pm_runtime_disable(dev);
		if (bank->dbck_flag)
			clk_unprepare(bank->dbck);
		return ret;
	}