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

Commit bd0b9ac4 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

genirq: Remove irq argument from irq flow handlers



Most interrupt flow handlers do not use the irq argument. Those few
which use it can retrieve the irq number from the irq descriptor.

Remove the argument.

Search and replace was done with coccinelle and some extra helper
scripts around it. Thanks to Julia for her help!

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
parent b237721c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -117,6 +117,6 @@ handle_irq(int irq)
	}

	irq_enter();
	generic_handle_irq_desc(irq, desc);
	generic_handle_irq_desc(desc);
	irq_exit();
}
+1 −1
Original line number Diff line number Diff line
@@ -252,7 +252,7 @@ static struct irq_chip idu_irq_chip = {

static int idu_first_irq;

static void idu_cascade_isr(unsigned int __core_irq, struct irq_desc *desc)
static void idu_cascade_isr(struct irq_desc *desc)
{
	struct irq_domain *domain = irq_desc_get_handler_data(desc);
	unsigned int core_irq = irq_desc_get_irq(desc);
+1 −1
Original line number Diff line number Diff line
@@ -95,7 +95,7 @@ void it8152_init_irq(void)
	}
}

void it8152_irq_demux(unsigned int irq, struct irq_desc *desc)
void it8152_irq_demux(struct irq_desc *desc)
{
       int bits_pd, bits_lp, bits_ld;
       int i;
+1 −1
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ static struct locomo_dev_info locomo_devices[] = {
	},
};

static void locomo_handler(unsigned int __irq, struct irq_desc *desc)
static void locomo_handler(struct irq_desc *desc)
{
	struct locomo *lchip = irq_desc_get_chip_data(desc);
	int req, i;
+2 −4
Original line number Diff line number Diff line
@@ -196,10 +196,8 @@ static struct sa1111_dev_info sa1111_devices[] = {
 * active IRQs causes the interrupt output to pulse, the upper levels
 * will call us again if there are more interrupts to process.
 */
static void
sa1111_irq_handler(unsigned int __irq, struct irq_desc *desc)
static void sa1111_irq_handler(struct irq_desc *desc)
{
	unsigned int irq = irq_desc_get_irq(desc);
	unsigned int stat0, stat1, i;
	struct sa1111 *sachip = irq_desc_get_handler_data(desc);
	void __iomem *mapbase = sachip->base + SA1111_INTC;
@@ -214,7 +212,7 @@ sa1111_irq_handler(unsigned int __irq, struct irq_desc *desc)
	sa1111_writel(stat1, mapbase + SA1111_INTSTATCLR1);

	if (stat0 == 0 && stat1 == 0) {
		do_bad_IRQ(irq, desc);
		do_bad_IRQ(desc);
		return;
	}

Loading