From: Mark Brown Date: Tue, 26 Mar 2013 11:14:52 +0000 (+0000) Subject: mfd: wm5102: Only use the lowest three bits of device revision X-Git-Tag: v3.10-rc1~86^2~71 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c6d6bfb186add845d3f9a7f5809bc5b302579308;p=platform%2Fkernel%2Flinux-3.10.git mfd: wm5102: Only use the lowest three bits of device revision Only the lowest three bits contain device revision for WM5102, the high bits have been repurposed. Signed-off-by: Mark Brown Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c index 1eb963c..f120571 100644 --- a/drivers/mfd/arizona-core.c +++ b/drivers/mfd/arizona-core.c @@ -444,6 +444,7 @@ int arizona_dev_init(struct arizona *arizona) arizona->type = WM5102; } apply_patch = wm5102_patch; + arizona->rev &= 0x7; break; #endif #ifdef CONFIG_MFD_WM5110