From: Axel Lin Date: Tue, 16 Apr 2013 15:29:12 +0000 (+0800) Subject: regulator: ab8500-ext: Don't update info->update_val if set_mode() fails X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~131^2~25^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66511fa4a7902fb9ffdffc8c153f1758817fb8a4;p=pandora-kernel.git regulator: ab8500-ext: Don't update info->update_val if set_mode() fails This ensures info->update_val status is still correct if set_mode() call fails. Otherwise, get_mode() may return wrong status if a set_mode() call fails. Signed-off-by: Axel Lin Acked-by: Bengt Jonsson Signed-off-by: Mark Brown --- Reading git-diff-tree failed