summaryrefslogtreecommitdiffstats
path: root/drivers/irqchip/irq-atmel-aic.c
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2020-03-10 19:49:18 +0100
committerMarc Zyngier <maz@kernel.org>2020-03-16 16:48:54 +0100
commit7177144a54f594f8815b777ae647e58b07c03f86 (patch)
tree6cdcb7ec697e1c42a2ab17002f6cacb28da76684 /drivers/irqchip/irq-atmel-aic.c
parentirqchip/gic-v3-its: Probe ITS page size for all GITS_BASERn registers (diff)
downloadlinux-7177144a54f594f8815b777ae647e58b07c03f86.tar.xz
linux-7177144a54f594f8815b777ae647e58b07c03f86.zip
irqchip/atmel-aic: Fix irq_retrigger callback return value
The irq_retrigger callback is supposed to return 0 when retrigger has failed, and a non-zero value otherwise. Tell the core code that the driver has succedded in using the HW to retrigger the interrupt. Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20200310184921.23552-2-maz@kernel.org
Diffstat (limited to 'drivers/irqchip/irq-atmel-aic.c')
-rw-r--r--drivers/irqchip/irq-atmel-aic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-atmel-aic.c b/drivers/irqchip/irq-atmel-aic.c
index bb1ad451392f..2c999dc310c1 100644
--- a/drivers/irqchip/irq-atmel-aic.c
+++ b/drivers/irqchip/irq-atmel-aic.c
@@ -83,7 +83,7 @@ static int aic_retrigger(struct irq_data *d)
irq_reg_writel(gc, d->mask, AT91_AIC_ISCR);
irq_gc_unlock(gc);
- return 0;
+ return 1;
}
static int aic_set_type(struct irq_data *d, unsigned type)