From: Axel Lin Date: Sun, 19 May 2013 06:00:47 +0000 (+0800) Subject: gpio: Don't override the error code in probe error handling X-Git-Tag: v3.10-rc3~19^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfb10898efe1bc1f3eb8d8f37f164d9e2ac8b43a;p=pandora-kernel.git 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 Cc: Tomoya MORINAGA Cc: Denis Turischev Cc: Lars Poeschel Signed-off-by: Linus Walleij --- Reading git-diff-tree failed