diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-07-05 15:35:31 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-07-08 18:39:07 -0400 |
commit | 863df8d5f1a1a92016e24c80947cb3509b8aaa48 (patch) | |
tree | 77770052c0e5fb149e45d2c3e080011db1fa9ad1 /drivers/mfd/arizona-i2c.c | |
parent | cfe775ce62d83168125299714739aebc1018211e (diff) |
mfd: Add missing WM5102 ifdefs
References to the WM5102 tables need to be guarded.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/arizona-i2c.c')
-rw-r--r-- | drivers/mfd/arizona-i2c.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/arizona-i2c.c b/drivers/mfd/arizona-i2c.c index 75fb110105e1..fe19d11b92f0 100644 --- a/drivers/mfd/arizona-i2c.c +++ b/drivers/mfd/arizona-i2c.c | |||
@@ -30,9 +30,11 @@ static __devinit int arizona_i2c_probe(struct i2c_client *i2c, | |||
30 | int ret; | 30 | int ret; |
31 | 31 | ||
32 | switch (id->driver_data) { | 32 | switch (id->driver_data) { |
33 | #ifdef CONFIG_MFD_WM5102 | ||
33 | case WM5102: | 34 | case WM5102: |
34 | regmap_config = &wm5102_i2c_regmap; | 35 | regmap_config = &wm5102_i2c_regmap; |
35 | break; | 36 | break; |
37 | #endif | ||
36 | default: | 38 | default: |
37 | dev_err(&i2c->dev, "Unknown device type %ld\n", | 39 | dev_err(&i2c->dev, "Unknown device type %ld\n", |
38 | id->driver_data); | 40 | id->driver_data); |