pinctrl: Don't override the error code in probe error handling
authorAxel Lin <axel.lin@ingics.com>
Sun, 19 May 2013 05:58:37 +0000 (13:58 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 27 May 2013 13:37:08 +0000 (15:37 +0200)
commit97fc463769f1564e8eda2e2f70d3b6e92a25ff16
treef1ee749b141b7055f9995afa506c83539bc6382e
parentb134dc3feaa5136b376c7d2658bbe156bea19e63
pinctrl: 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>
Acked-by: Tony Prisk <linux@prisktech.co.nz>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-coh901.c
drivers/pinctrl/pinctrl-sunxi.c
drivers/pinctrl/vt8500/pinctrl-wmt.c