diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-01 08:44:31 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-08-14 15:03:38 +0200 |
commit | e2c3c1969dc77d4630cc88669f5fc6253210a025 (patch) | |
tree | 9e53bf3d76bc22dcc479c487c06949d8fbf47155 /drivers/gpio/gpio-omap.c | |
parent | gpio: mb86s7x: Handle return value of clk_prepare_enable. (diff) | |
download | linux-e2c3c1969dc77d4630cc88669f5fc6253210a025.tar.xz linux-e2c3c1969dc77d4630cc88669f5fc6253210a025.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/gpio/gpio-omap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index f8c550de6c72..dbf869fb63ce 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; } |