pinctrl: qcom: remove gpiochip in failure cases
authorPramod Gurav <pramod.gurav@smartplayin.com>
Fri, 29 Aug 2014 08:11:48 +0000 (13:41 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 2 Sep 2014 12:27:40 +0000 (14:27 +0200)
commitc6e927a27498bf9314ba8e313d15d1b3f6046d7f
tree6fe9a1315a57f773c09557d9e4562ade9234bf5a
parenta198420028bb6ddb1930dddc3602a3e9b4803ed5
pinctrl: qcom: remove gpiochip in failure cases

This patch releases gpiochip related resources by calling
gpiochip_remove when either of gpiochip_add_pin_range and
gpiochip_irqchip_add fails.

CC: Linus Walleij <linus.walleij@linaro.org>
CC: "Ivan T. Ivanov" <iivanov@mm-sol.com>
Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-msm.c