From: Arvind Yadav Date: Tue, 1 Aug 2017 06:44:31 +0000 (+0530) Subject: gpio: omap : Add missing clk_unprepare(). X-Git-Tag: v4.14-rc1~141^2~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2c3c1969dc77d4630cc88669f5fc6253210a025;p=platform%2Fkernel%2Flinux-rpi.git gpio: omap : Add missing clk_unprepare(). omap_gpio_probe() can fail here and we must disable clock. Signed-off-by: Arvind Yadav Reviewed-by: Grygorii Strashko Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index f8c550de..dbf869f 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -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; }