Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b53ec26 authored by Daniel Thompson's avatar Daniel Thompson Committed by Jason Cooper
Browse files

irqchip: nvic: Use the generic noop function



Using the generic function saves looking up this custom one in a source
navigator.

Signed-off-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Link: https://lkml.kernel.org/r/1401894112-13386-1-git-send-email-daniel.thompson@linaro.org


Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent 7171511e
Loading
Loading
Loading
Loading
+4 −9
Original line number Original line Diff line number Diff line
@@ -49,14 +49,6 @@ nvic_handle_irq(irq_hw_number_t hwirq, struct pt_regs *regs)
	handle_IRQ(irq, regs);
	handle_IRQ(irq, regs);
}
}


static void nvic_eoi(struct irq_data *d)
{
	/*
	 * This is a no-op as end of interrupt is signaled by the exception
	 * return sequence.
	 */
}

static int __init nvic_of_init(struct device_node *node,
static int __init nvic_of_init(struct device_node *node,
			       struct device_node *parent)
			       struct device_node *parent)
{
{
@@ -102,7 +94,10 @@ static int __init nvic_of_init(struct device_node *node,
		gc->chip_types[0].regs.disable = NVIC_ICER;
		gc->chip_types[0].regs.disable = NVIC_ICER;
		gc->chip_types[0].chip.irq_mask = irq_gc_mask_disable_reg;
		gc->chip_types[0].chip.irq_mask = irq_gc_mask_disable_reg;
		gc->chip_types[0].chip.irq_unmask = irq_gc_unmask_enable_reg;
		gc->chip_types[0].chip.irq_unmask = irq_gc_unmask_enable_reg;
		gc->chip_types[0].chip.irq_eoi = nvic_eoi;
		/* This is a no-op as end of interrupt is signaled by the
		 * exception return sequence.
		 */
		gc->chip_types[0].chip.irq_eoi = irq_gc_noop;


		/* disable interrupts */
		/* disable interrupts */
		writel_relaxed(~0, gc->reg_base + NVIC_ICER);
		writel_relaxed(~0, gc->reg_base + NVIC_ICER);