mfd: wm5102: Only use the lowest three bits of device revision
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 26 Mar 2013 11:14:52 +0000 (11:14 +0000)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 8 Apr 2013 13:21:00 +0000 (15:21 +0200)
Only the lowest three bits contain device revision for WM5102, the high
bits have been repurposed.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/arizona-core.c

index 1eb963c5cd227d660267943be2d6f4bf7cc5329b..f12057145990a53af9e83f939940971b34518e80 100644 (file)
@@ -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
This page took 0.029849 seconds and 5 git commands to generate.