summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/ioc3.c
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2021-05-04 17:42:18 +0100
committerMarc Zyngier <maz@kernel.org>2021-08-12 11:39:39 +0100
commit3b0cccef0574ef82da2d85180fcfcf9637f8154d (patch)
treee2aae8d6fd36e4f1980ec60a49368756b3fa0540 /drivers/mfd/ioc3.c
parenta9cb09b7be84a7adc9e6f4aaf8d770933d65f953 (diff)
downloadlinux-3b0cccef0574ef82da2d85180fcfcf9637f8154d.tar.gz
linux-3b0cccef0574ef82da2d85180fcfcf9637f8154d.tar.bz2
linux-3b0cccef0574ef82da2d85180fcfcf9637f8154d.zip
mfd: Bulk conversion to generic_handle_domain_irq()
Wherever possible, replace constructs that match either generic_handle_irq(irq_find_mapping()) or generic_handle_irq(irq_linear_revmap()) to a single call to generic_handle_domain_irq(). Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'drivers/mfd/ioc3.c')
-rw-r--r--drivers/mfd/ioc3.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/mfd/ioc3.c b/drivers/mfd/ioc3.c
index 99b9c113f964..58656837b7c6 100644
--- a/drivers/mfd/ioc3.c
+++ b/drivers/mfd/ioc3.c
@@ -105,19 +105,15 @@ static void ioc3_irq_handler(struct irq_desc *desc)
struct ioc3_priv_data *ipd = domain->host_data;
struct ioc3 __iomem *regs = ipd->regs;
u32 pending, mask;
- unsigned int irq;
pending = readl(&regs->sio_ir);
mask = readl(&regs->sio_ies);
pending &= mask; /* Mask off not enabled interrupts */
- if (pending) {
- irq = irq_find_mapping(domain, __ffs(pending));
- if (irq)
- generic_handle_irq(irq);
- } else {
+ if (pending)
+ generic_handle_domain_irq(domain, __ffs(pending));
+ else
spurious_interrupt();
- }
}
/*