summaryrefslogtreecommitdiff
path: root/drivers/irqchip/irq-sun6i-r.c
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2022-04-24 20:39:51 +0300
committerMarc Zyngier <maz@kernel.org>2022-05-04 18:36:59 +0300
commit1b2eb89ccf4ffff2ea83c41451b3fed709cd3fc8 (patch)
tree72c7786a1773b51bb31e5982122f6d31ad03f971 /drivers/irqchip/irq-sun6i-r.c
parent168f633b1722597673e5aa5a6c7721191a9d221f (diff)
downloadlinux-1b2eb89ccf4ffff2ea83c41451b3fed709cd3fc8.tar.xz
irqchip/sun6i-r: Use NULL for chip_data
sparse complains about using an integer as a NULL pointer. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20220424173952.36591-1-samuel@sholland.org
Diffstat (limited to 'drivers/irqchip/irq-sun6i-r.c')
-rw-r--r--drivers/irqchip/irq-sun6i-r.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/irqchip/irq-sun6i-r.c b/drivers/irqchip/irq-sun6i-r.c
index 4cd3e533740b..a01e44049415 100644
--- a/drivers/irqchip/irq-sun6i-r.c
+++ b/drivers/irqchip/irq-sun6i-r.c
@@ -249,11 +249,13 @@ static int sun6i_r_intc_domain_alloc(struct irq_domain *domain,
for (i = 0; i < nr_irqs; ++i, ++hwirq, ++virq) {
if (hwirq == nmi_hwirq) {
irq_domain_set_hwirq_and_chip(domain, virq, hwirq,
- &sun6i_r_intc_nmi_chip, 0);
+ &sun6i_r_intc_nmi_chip,
+ NULL);
irq_set_handler(virq, handle_fasteoi_ack_irq);
} else {
irq_domain_set_hwirq_and_chip(domain, virq, hwirq,
- &sun6i_r_intc_wakeup_chip, 0);
+ &sun6i_r_intc_wakeup_chip,
+ NULL);
}
}