From: Roel Kluin Date: Fri, 16 Oct 2009 12:16:15 +0000 (+0200) Subject: regulator: Fix check of unsigned return value and transmit errors in wm831x_gp_ldo_ge... X-Git-Tag: v2.6.32-rc8~27^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a767d43fbddb3319dca568df49c48e0d1bb6bd8;p=pandora-kernel.git regulator: Fix check of unsigned return value and transmit errors in wm831x_gp_ldo_get_mode() If ret is unsigned, the checks for negative wm831x_reg_read() return values are wrong. The error value should be transmitted to its caller, e.g. wm831x_gp_ldo_get_status() which tests for a negative return value. Signed-off-by: Roel Kluin Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed