Blackfin: convert error irq_chip to new functions
authorThomas Gleixner <tglx@linutronix.de>
Sun, 6 Feb 2011 18:23:31 +0000 (18:23 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 18 Mar 2011 08:01:06 +0000 (04:01 -0400)
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/mach-common/ints-priority.c

index a233c3ec88248a99292f2da4d192d647eec772a4..79ee08d89815191dd20b5eb65af8ab7e44f31618 100644 (file)
@@ -334,25 +334,25 @@ static void bfin_handle_irq(unsigned irq)
 #ifdef BF537_GENERIC_ERROR_INT_DEMUX
 static int error_int_mask;
 
-static void bfin_generic_error_mask_irq(unsigned int irq)
+static void bfin_generic_error_mask_irq(struct irq_data *d)
 {
-       error_int_mask &= ~(1L << (irq - IRQ_PPI_ERROR));
+       error_int_mask &= ~(1L << (d->irq - IRQ_PPI_ERROR));
        if (!error_int_mask)
                bfin_internal_mask_irq(IRQ_GENERIC_ERROR);
 }
 
-static void bfin_generic_error_unmask_irq(unsigned int irq)
+static void bfin_generic_error_unmask_irq(struct irq_data *d)
 {
        bfin_internal_unmask_irq(IRQ_GENERIC_ERROR);
-       error_int_mask |= 1L << (irq - IRQ_PPI_ERROR);
+       error_int_mask |= 1L << (d->irq - IRQ_PPI_ERROR);
 }
 
 static struct irq_chip bfin_generic_error_irqchip = {
        .name = "ERROR",
        .irq_ack = bfin_ack_noop,
-       .mask_ack = bfin_generic_error_mask_irq,
-       .mask = bfin_generic_error_mask_irq,
-       .unmask = bfin_generic_error_unmask_irq,
+       .irq_mask_ack = bfin_generic_error_mask_irq,
+       .irq_mask = bfin_generic_error_mask_irq,
+       .irq_unmask = bfin_generic_error_unmask_irq,
 };
 
 static void bfin_demux_error_irq(unsigned int int_err_irq,