irqchip/xilinx: Rename get_irq to xintc_get_irq
authorZubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Mon, 14 Nov 2016 12:13:48 +0000 (12:13 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 29 Nov 2016 09:14:49 +0000 (09:14 +0000)
Now that the driver is generic and used by multiple archs,
get_irq is too generic.

Rename get_irq to xintc_get_irq to avoid any conflicts

Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/microblaze/include/asm/irq.h
arch/microblaze/kernel/irq.c
drivers/irqchip/irq-xilinx-intc.c

index bab3b1393ad4306b61c6a8a3ba766ee847b1bb8e..d785defeeed58e0927c4d5de221c6e623b8590c8 100644 (file)
@@ -16,6 +16,6 @@ struct pt_regs;
 extern void do_IRQ(struct pt_regs *regs);
 
 /* should be defined in each interrupt controller driver */
-extern unsigned int get_irq(void);
+extern unsigned int xintc_get_irq(void);
 
 #endif /* _ASM_MICROBLAZE_IRQ_H */
index 11e24de91aa423dda14577b4d9c7aacf5e8631cb..903dad822fad98bad1657e08d7bbee3c0f225cb6 100644 (file)
@@ -29,12 +29,12 @@ void __irq_entry do_IRQ(struct pt_regs *regs)
        trace_hardirqs_off();
 
        irq_enter();
-       irq = get_irq();
+       irq = xintc_get_irq();
 next_irq:
        BUG_ON(!irq);
        generic_handle_irq(irq);
 
-       irq = get_irq();
+       irq = xintc_get_irq();
        if (irq != -1U) {
                pr_debug("next irq: %d\n", irq);
                ++concurrent_irq;
index 7331d8cb35f1a4358591cb704ceece985d024b44..34ec609ea89839d4029d10731c3bcd1d409a4562 100644 (file)
@@ -101,7 +101,7 @@ static struct irq_chip intc_dev = {
        .irq_mask_ack = intc_mask_ack,
 };
 
-unsigned int get_irq(void)
+unsigned int xintc_get_irq(void)
 {
        unsigned int hwirq, irq = -1;