From: Krzysztof Kozlowski Date: Tue, 4 Nov 2014 08:49:43 +0000 (+0100) Subject: regulator: max77802: Don't ignore return value of current opmode X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~23^2~2^4~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a26ed45c912d46cedac5f15c2872aa7e462fcdf1;p=pandora-kernel.git regulator: max77802: Don't ignore return value of current opmode The return value of regmap_read() of current opmode for regulator was silently ignored and whatever happened to be in 'val' variable was used as new opmode. This could lead to using bogus opmode. Don't ignore what regmap_read() returns. If it fails just fall back to normal opmode. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Javier Martinez Canillas Signed-off-by: Mark Brown --- Reading git-diff-tree failed