gpio: vr41xx: fix up errorpath on probe()
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 8 Jul 2014 07:22:10 +0000 (09:22 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 9 Jul 2014 10:22:54 +0000 (12:22 +0200)
commit246a144eed4093befc58e00cf3ba55e647977420
tree14b3a30eefd9037232b1ba4f135f32795b6d3e48
parent7cb5409b10d9f8316ca2539591acb6a5f7fd4139
gpio: vr41xx: fix up errorpath on probe()

The driver was not checking the return value from gpiochip_add()
properly, so add a bail-out check.

Reported-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-vr41xx.c