Axel Lin cfb10898ef gpio: Don't override the error code in probe error handling
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>
2013-05-20 20:27:30 +02:00
..
2012-07-05 14:49:13 +02:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2013-03-27 16:05:09 +01:00
2012-11-28 11:39:33 -08:00
2013-04-26 08:52:38 +02:00
2013-05-06 15:40:55 -07:00
2011-06-06 10:10:11 -06:00
2012-11-28 11:39:59 -08:00
2012-12-11 13:13:55 -08:00
2012-11-28 11:39:33 -08:00
2012-11-28 11:39:33 -08:00
2013-05-06 15:40:55 -07:00
2013-05-06 15:40:55 -07:00
2013-05-02 09:03:55 -07:00
2013-05-06 15:40:55 -07:00
2012-11-28 11:39:59 -08:00
2013-04-03 10:30:34 +09:00
2012-11-28 11:39:59 -08:00
2013-05-06 15:40:55 -07:00
2012-11-28 11:39:33 -08:00
2012-11-28 11:39:33 -08:00
2012-11-28 11:39:59 -08:00
2013-05-06 15:40:55 -07:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2013-05-06 15:40:55 -07:00