]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit48fc6ad5e17da96f24da1b2fe7b8c4eb2b5645a6
tree14b3a30eefd9037232b1ba4f135f32795b6d3e48
parentc3c458f5e286d6b6741f0f57f25c3b359505295d
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