gpio: Don't override the error code in probe error handling
authorAxel Lin <axel.lin@ingics.com>
Sun, 19 May 2013 06:00:47 +0000 (14:00 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 20 May 2013 18:27:30 +0000 (20:27 +0200)
Otherwise, we return 0 in probe error paths when gpiochip_remove() returns 0.
Also show error message if gpiochip_remove() fails.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Cc: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Cc: Denis Turischev <denis@compulab.co.il>
Cc: Lars Poeschel <poeschel@lemonage.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

No differences found