From: Axel Lin Date: Sat, 8 Mar 2014 03:55:29 +0000 (+0800) Subject: regulator: pbias: Fix is_enabled callback implementation X-Git-Tag: omap-for-v3.16/pm-signed~55^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cb7b43f6796ad0bc62669fa52d1005916911d27;p=pandora-kernel.git regulator: pbias: Fix is_enabled callback implementation The is_enabled implementation is wrong in some cases: e.g. for pbias_mmc_omap5: enable_mask is : BIT(27) | BIT(25) | BIT(26) However, pbias_regulator_enable() only sets BIT(27) | BIT(26) bits. So is_enabled callback will always return false in this case. Fix the logic to compare the register value with info->enable rather than info->enable_mask. Signed-off-by: Axel Lin Acked-by: Balaji T K Signed-off-by: Mark Brown --- Reading git-diff-tree failed