Commit 465b4079 authored by Lennert Buytenhek's avatar Lennert Buytenhek

ARM: iop32x: irq_data conversion.

Signed-off-by: default avatarLennert Buytenhek <buytenh@secretlab.ca>
Acked-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 418c9904
...@@ -32,24 +32,24 @@ static void intstr_write(u32 val) ...@@ -32,24 +32,24 @@ static void intstr_write(u32 val)
} }
static void static void
iop32x_irq_mask(unsigned int irq) iop32x_irq_mask(struct irq_data *d)
{ {
iop32x_mask &= ~(1 << irq); iop32x_mask &= ~(1 << d->irq);
intctl_write(iop32x_mask); intctl_write(iop32x_mask);
} }
static void static void
iop32x_irq_unmask(unsigned int irq) iop32x_irq_unmask(struct irq_data *d)
{ {
iop32x_mask |= 1 << irq; iop32x_mask |= 1 << d->irq;
intctl_write(iop32x_mask); intctl_write(iop32x_mask);
} }
struct irq_chip ext_chip = { struct irq_chip ext_chip = {
.name = "IOP32x", .name = "IOP32x",
.ack = iop32x_irq_mask, .irq_ack = iop32x_irq_mask,
.mask = iop32x_irq_mask, .irq_mask = iop32x_irq_mask,
.unmask = iop32x_irq_unmask, .irq_unmask = iop32x_irq_unmask,
}; };
void __init iop32x_init_irq(void) void __init iop32x_init_irq(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment