aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/arizona-irq.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-05 15:35:31 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2012-07-08 18:39:07 -0400
commit863df8d5f1a1a92016e24c80947cb3509b8aaa48 (patch)
tree77770052c0e5fb149e45d2c3e080011db1fa9ad1 /drivers/mfd/arizona-irq.c
parentcfe775ce62d83168125299714739aebc1018211e (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-irq.c')
-rw-r--r--drivers/mfd/arizona-irq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/arizona-irq.c b/drivers/mfd/arizona-irq.c
index 4c7894046a39..17d20c0fba1e 100644
--- a/drivers/mfd/arizona-irq.c
+++ b/drivers/mfd/arizona-irq.c
@@ -158,10 +158,12 @@ int arizona_irq_init(struct arizona *arizona)
158 const struct regmap_irq_chip *aod, *irq; 158 const struct regmap_irq_chip *aod, *irq;
159 159
160 switch (arizona->type) { 160 switch (arizona->type) {
161#ifdef CONFIG_MFD_WM5102
161 case WM5102: 162 case WM5102:
162 aod = &wm5102_aod; 163 aod = &wm5102_aod;
163 irq = &wm5102_irq; 164 irq = &wm5102_irq;
164 break; 165 break;
166#endif
165 default: 167 default:
166 BUG_ON("Unknown Arizona class device" == NULL); 168 BUG_ON("Unknown Arizona class device" == NULL);
167 return -EINVAL; 169 return -EINVAL;