pinctrl: sirf: Remove gpiochip on failure cases
authorPramod Gurav <pramod.gurav@smartplayin.com>
Sat, 30 Aug 2014 11:13:00 +0000 (16:43 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 4 Sep 2014 16:46:39 +0000 (18:46 +0200)
commit0a5d667048ab3b22dff3c60561a79310981ee897
treec475e61d0f85d0afbded7441de295b27269325f4
parentf712c554a7fca8f6308afbce844eacbf5e48787b
pinctrl: sirf: Remove gpiochip on failure cases

This patch releases gpiochip related resources by calling
gpiochip_remove when gpiochip_irqchip_add fails.

CC: Linus Walleij <linus.walleij@linaro.org>
CC: Barry Song <Baohua.Song@csr.com>
CC: Rongjun Ying <rongjun.ying@csr.com>
CC: Yuping Luo <yuping.luo@csr.com>
Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sirf/pinctrl-sirf.c