diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-07-05 21:35:31 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-07-09 00:39:07 +0200 |
commit | 863df8d5f1a1a92016e24c80947cb3509b8aaa48 (patch) | |
tree | 77770052c0e5fb149e45d2c3e080011db1fa9ad1 /drivers/mfd/arizona-irq.c | |
parent | mfd: Treat arizona register read errors as non-fatal during resume (diff) | |
download | linux-863df8d5f1a1a92016e24c80947cb3509b8aaa48.tar.xz linux-863df8d5f1a1a92016e24c80947cb3509b8aaa48.zip |
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 '')
-rw-r--r-- | drivers/mfd/arizona-irq.c | 2 |
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) const struct regmap_irq_chip *aod, *irq; switch (arizona->type) { +#ifdef CONFIG_MFD_WM5102 case WM5102: aod = &wm5102_aod; irq = &wm5102_irq; break; +#endif default: BUG_ON("Unknown Arizona class device" == NULL); return -EINVAL; |