]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcaf5ed4d10b9cce431b47462ca519f821460ee8b
tree0319a6cf1d53a9ab4db83f679a61cf671e50dd14
parent307db13421d573675c32884d1a0d37f2f0d48606
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