diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2010-11-29 04:32:37 -0500 |
---|---|---|
committer | Lennert Buytenhek <buytenh@wantstofly.org> | 2011-01-13 11:18:37 -0500 |
commit | a0ad2a7e6b74def9b3b0db0cd4daea7a1bccef59 (patch) | |
tree | a012a0bf63723d82240e5d620c21ced7dae00993 /arch/arm/mach-iop33x/irq.c | |
parent | 465b40794c29497d93bc590f119e6e033b6d48d5 (diff) |
ARM: iop33x: irq_data conversion.
Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'arch/arm/mach-iop33x/irq.c')
-rw-r--r-- | arch/arm/mach-iop33x/irq.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/arch/arm/mach-iop33x/irq.c b/arch/arm/mach-iop33x/irq.c index abb4ea2ed4fd..0ff2f74363a5 100644 --- a/arch/arm/mach-iop33x/irq.c +++ b/arch/arm/mach-iop33x/irq.c | |||
@@ -53,45 +53,45 @@ static void intsize_write(u32 val) | |||
53 | } | 53 | } |
54 | 54 | ||
55 | static void | 55 | static void |
56 | iop33x_irq_mask1 (unsigned int irq) | 56 | iop33x_irq_mask1 (struct irq_data *d) |
57 | { | 57 | { |
58 | iop33x_mask0 &= ~(1 << irq); | 58 | iop33x_mask0 &= ~(1 << d->irq); |
59 | intctl0_write(iop33x_mask0); | 59 | intctl0_write(iop33x_mask0); |
60 | } | 60 | } |
61 | 61 | ||
62 | static void | 62 | static void |
63 | iop33x_irq_mask2 (unsigned int irq) | 63 | iop33x_irq_mask2 (struct irq_data *d) |
64 | { | 64 | { |
65 | iop33x_mask1 &= ~(1 << (irq - 32)); | 65 | iop33x_mask1 &= ~(1 << (d->irq - 32)); |
66 | intctl1_write(iop33x_mask1); | 66 | intctl1_write(iop33x_mask1); |
67 | } | 67 | } |
68 | 68 | ||
69 | static void | 69 | static void |
70 | iop33x_irq_unmask1(unsigned int irq) | 70 | iop33x_irq_unmask1(struct irq_data *d) |
71 | { | 71 | { |
72 | iop33x_mask0 |= 1 << irq; | 72 | iop33x_mask0 |= 1 << d->irq; |
73 | intctl0_write(iop33x_mask0); | 73 | intctl0_write(iop33x_mask0); |
74 | } | 74 | } |
75 | 75 | ||
76 | static void | 76 | static void |
77 | iop33x_irq_unmask2(unsigned int irq) | 77 | iop33x_irq_unmask2(struct irq_data *d) |
78 | { | 78 | { |
79 | iop33x_mask1 |= (1 << (irq - 32)); | 79 | iop33x_mask1 |= (1 << (d->irq - 32)); |
80 | intctl1_write(iop33x_mask1); | 80 | intctl1_write(iop33x_mask1); |
81 | } | 81 | } |
82 | 82 | ||
83 | struct irq_chip iop33x_irqchip1 = { | 83 | struct irq_chip iop33x_irqchip1 = { |
84 | .name = "IOP33x-1", | 84 | .name = "IOP33x-1", |
85 | .ack = iop33x_irq_mask1, | 85 | .irq_ack = iop33x_irq_mask1, |
86 | .mask = iop33x_irq_mask1, | 86 | .irq_mask = iop33x_irq_mask1, |
87 | .unmask = iop33x_irq_unmask1, | 87 | .irq_unmask = iop33x_irq_unmask1, |
88 | }; | 88 | }; |
89 | 89 | ||
90 | struct irq_chip iop33x_irqchip2 = { | 90 | struct irq_chip iop33x_irqchip2 = { |
91 | .name = "IOP33x-2", | 91 | .name = "IOP33x-2", |
92 | .ack = iop33x_irq_mask2, | 92 | .irq_ack = iop33x_irq_mask2, |
93 | .mask = iop33x_irq_mask2, | 93 | .irq_mask = iop33x_irq_mask2, |
94 | .unmask = iop33x_irq_unmask2, | 94 | .irq_unmask = iop33x_irq_unmask2, |
95 | }; | 95 | }; |
96 | 96 | ||
97 | void __init iop33x_init_irq(void) | 97 | void __init iop33x_init_irq(void) |