pinctrl: lantiq: remove bogus of_gpio_chip_add
commit41f632fe177bc4822c2e8236fe7c291e6e9eb6f8
authorJohan Hovold <johan@kernel.org>
Mon, 12 Jan 2015 16:20:51 +0000 (12 17:20 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 14 Jan 2015 13:20:46 +0000 (14 14:20 +0100)
tree50acc3e7d69af93e7bc893b6c5704b4d2031ecaa
parentdb93facfb0ef542aa5d8079e47580b3e669a4d82
pinctrl: lantiq: remove bogus of_gpio_chip_add

Remove bogus call to of_gpiochip_add (and of_gpio_chip remove in error
path) which is also called when adding the gpio chip.

This prevents adding the same pinctrl range twice.

Fixes: 3f8c50c9b110 ("OF: pinctrl: MIPS: lantiq: implement lantiq/xway
pinctrl support")

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-xway.c