pinctrl: lantiq: Release gpiochip resources in fail case
authorPramod Gurav <pramod.gurav@smartplayin.com>
Tue, 9 Sep 2014 08:05:52 +0000 (13:35 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 23 Sep 2014 10:23:09 +0000 (12:23 +0200)
commit849a8c25c80a2cde824072813bf4aabbc79b8789
tree69771f8abd0ffe174394bb8305584fef712a81d0
parent3dac1918a4912cea9375e76cb3916b751cef22db
pinctrl: lantiq: Release gpiochip resources in fail case

This patch releases gpiochip resources with of_gpiochip_remove
and gpiochip_remove in failure cases.

CC: John Crispin <blogic@openwrt.org>
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-xway.c