diff options
Diffstat (limited to 'drivers/mfd/wm8994-irq.c')
-rw-r--r-- | drivers/mfd/wm8994-irq.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/mfd/wm8994-irq.c b/drivers/mfd/wm8994-irq.c index 71c6e8f9aedb..d682f7bd112c 100644 --- a/drivers/mfd/wm8994-irq.c +++ b/drivers/mfd/wm8994-irq.c | |||
@@ -231,12 +231,6 @@ static irqreturn_t wm8994_irq_thread(int irq, void *data) | |||
231 | status[i] &= ~wm8994->irq_masks_cur[i]; | 231 | status[i] &= ~wm8994->irq_masks_cur[i]; |
232 | } | 232 | } |
233 | 233 | ||
234 | /* Report */ | ||
235 | for (i = 0; i < ARRAY_SIZE(wm8994_irqs); i++) { | ||
236 | if (status[wm8994_irqs[i].reg - 1] & wm8994_irqs[i].mask) | ||
237 | handle_nested_irq(wm8994->irq_base + i); | ||
238 | } | ||
239 | |||
240 | /* Ack any unmasked IRQs */ | 234 | /* Ack any unmasked IRQs */ |
241 | for (i = 0; i < ARRAY_SIZE(status); i++) { | 235 | for (i = 0; i < ARRAY_SIZE(status); i++) { |
242 | if (status[i]) | 236 | if (status[i]) |
@@ -244,6 +238,12 @@ static irqreturn_t wm8994_irq_thread(int irq, void *data) | |||
244 | status[i]); | 238 | status[i]); |
245 | } | 239 | } |
246 | 240 | ||
241 | /* Report */ | ||
242 | for (i = 0; i < ARRAY_SIZE(wm8994_irqs); i++) { | ||
243 | if (status[wm8994_irqs[i].reg - 1] & wm8994_irqs[i].mask) | ||
244 | handle_nested_irq(wm8994->irq_base + i); | ||
245 | } | ||
246 | |||
247 | return IRQ_HANDLED; | 247 | return IRQ_HANDLED; |
248 | } | 248 | } |
249 | 249 | ||