diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-13 06:03:26 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-15 13:57:25 -0400 |
commit | 6550334f96ab02e540572a142d0851c7f3120585 (patch) | |
tree | 702644ab4e666ad57fe785dac776bc8e94ec8a9d /drivers/mfd | |
parent | 022f926a2401c80ed36ebb48a1bffbac08f34d98 (diff) |
mfd: wm8994: Update to fully use irq_domain
Take advantage of the new regmap irq_domain support to dynamically
allocate interrupts, using regmap_irq_get_virq() rather than irq_base
to look up the interrupts. This means that most users should not need
to specify an irq_base at all.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/wm8994-irq.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/mfd/wm8994-irq.c b/drivers/mfd/wm8994-irq.c index 46b20c445ec..f1837f66975 100644 --- a/drivers/mfd/wm8994-irq.c +++ b/drivers/mfd/wm8994-irq.c | |||
@@ -147,12 +147,6 @@ int wm8994_irq_init(struct wm8994 *wm8994) | |||
147 | return 0; | 147 | return 0; |
148 | } | 148 | } |
149 | 149 | ||
150 | if (!wm8994->irq_base) { | ||
151 | dev_err(wm8994->dev, | ||
152 | "No interrupt base specified, no interrupts\n"); | ||
153 | return 0; | ||
154 | } | ||
155 | |||
156 | ret = regmap_add_irq_chip(wm8994->regmap, wm8994->irq, | 150 | ret = regmap_add_irq_chip(wm8994->regmap, wm8994->irq, |
157 | IRQF_TRIGGER_HIGH | IRQF_ONESHOT, | 151 | IRQF_TRIGGER_HIGH | IRQF_ONESHOT, |
158 | wm8994->irq_base, &wm8994_irq_chip, | 152 | wm8994->irq_base, &wm8994_irq_chip, |