pinctrl: at91: Fix failure path in at91_gpio_probe path
authorPramod Gurav <pramod.gurav@smartplayin.com>
Tue, 9 Sep 2014 10:20:36 +0000 (15:50 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 23 Sep 2014 14:45:22 +0000 (16:45 +0200)
commit70e4197420a154a2a684b6e7b496dda70b20d9ec
tree0319a6cf1d53a9ab4db83f679a61cf671e50dd14
parent849a8c25c80a2cde824072813bf4aabbc79b8789
pinctrl: at91: Fix failure path in at91_gpio_probe path

This fixes the whole error handling in probe function by capturing and
returning error values on kernel function like clk_prepare,
clk_enable, gpiochip_add etc.

CC: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
CC: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-at91.c