diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2010-11-29 04:32:01 -0500 |
---|---|---|
committer | Lennert Buytenhek <buytenh@wantstofly.org> | 2011-01-13 11:18:35 -0500 |
commit | 418c9904d3353f9d33f37d045975fed5d0ff1a81 (patch) | |
tree | 1ae8eeb7cd5f6f29910755dfbaf0fe5ff073ab91 /arch | |
parent | c3ef3ccadb0d8fc4f8de89a63edf0cee979a7235 (diff) |
ARM: iop13xx: irq_data conversion.
Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-iop13xx/irq.c | 64 | ||||
-rw-r--r-- | arch/arm/mach-iop13xx/msi.c | 4 |
2 files changed, 34 insertions, 34 deletions
diff --git a/arch/arm/mach-iop13xx/irq.c b/arch/arm/mach-iop13xx/irq.c index 0d099ca87bdf..a233470dd10c 100644 --- a/arch/arm/mach-iop13xx/irq.c +++ b/arch/arm/mach-iop13xx/irq.c | |||
@@ -123,79 +123,79 @@ static void write_intsize(u32 val) | |||
123 | 123 | ||
124 | /* 0 = Interrupt Masked and 1 = Interrupt not masked */ | 124 | /* 0 = Interrupt Masked and 1 = Interrupt not masked */ |
125 | static void | 125 | static void |
126 | iop13xx_irq_mask0 (unsigned int irq) | 126 | iop13xx_irq_mask0 (struct irq_data *d) |
127 | { | 127 | { |
128 | write_intctl_0(read_intctl_0() & ~(1 << (irq - 0))); | 128 | write_intctl_0(read_intctl_0() & ~(1 << (d->irq - 0))); |
129 | } | 129 | } |
130 | 130 | ||
131 | static void | 131 | static void |
132 | iop13xx_irq_mask1 (unsigned int irq) | 132 | iop13xx_irq_mask1 (struct irq_data *d) |
133 | { | 133 | { |
134 | write_intctl_1(read_intctl_1() & ~(1 << (irq - 32))); | 134 | write_intctl_1(read_intctl_1() & ~(1 << (d->irq - 32))); |
135 | } | 135 | } |
136 | 136 | ||
137 | static void | 137 | static void |
138 | iop13xx_irq_mask2 (unsigned int irq) | 138 | iop13xx_irq_mask2 (struct irq_data *d) |
139 | { | 139 | { |
140 | write_intctl_2(read_intctl_2() & ~(1 << (irq - 64))); | 140 | write_intctl_2(read_intctl_2() & ~(1 << (d->irq - 64))); |
141 | } | 141 | } |
142 | 142 | ||
143 | static void | 143 | static void |
144 | iop13xx_irq_mask3 (unsigned int irq) | 144 | iop13xx_irq_mask3 (struct irq_data *d) |
145 | { | 145 | { |
146 | write_intctl_3(read_intctl_3() & ~(1 << (irq - 96))); | 146 | write_intctl_3(read_intctl_3() & ~(1 << (d->irq - 96))); |
147 | } | 147 | } |
148 | 148 | ||
149 | static void | 149 | static void |
150 | iop13xx_irq_unmask0(unsigned int irq) | 150 | iop13xx_irq_unmask0(struct irq_data *d) |
151 | { | 151 | { |
152 | write_intctl_0(read_intctl_0() | (1 << (irq - 0))); | 152 | write_intctl_0(read_intctl_0() | (1 << (d->irq - 0))); |
153 | } | 153 | } |
154 | 154 | ||
155 | static void | 155 | static void |
156 | iop13xx_irq_unmask1(unsigned int irq) | 156 | iop13xx_irq_unmask1(struct irq_data *d) |
157 | { | 157 | { |
158 | write_intctl_1(read_intctl_1() | (1 << (irq - 32))); | 158 | write_intctl_1(read_intctl_1() | (1 << (d->irq - 32))); |
159 | } | 159 | } |
160 | 160 | ||
161 | static void | 161 | static void |
162 | iop13xx_irq_unmask2(unsigned int irq) | 162 | iop13xx_irq_unmask2(struct irq_data *d) |
163 | { | 163 | { |
164 | write_intctl_2(read_intctl_2() | (1 << (irq - 64))); | 164 | write_intctl_2(read_intctl_2() | (1 << (d->irq - 64))); |
165 | } | 165 | } |
166 | 166 | ||
167 | static void | 167 | static void |
168 | iop13xx_irq_unmask3(unsigned int irq) | 168 | iop13xx_irq_unmask3(struct irq_data *d) |
169 | { | 169 | { |
170 | write_intctl_3(read_intctl_3() | (1 << (irq - 96))); | 170 | write_intctl_3(read_intctl_3() | (1 << (d->irq - 96))); |
171 | } | 171 | } |
172 | 172 | ||
173 | static struct irq_chip iop13xx_irqchip1 = { | 173 | static struct irq_chip iop13xx_irqchip1 = { |
174 | .name = "IOP13xx-1", | 174 | .name = "IOP13xx-1", |
175 | .ack = iop13xx_irq_mask0, | 175 | .irq_ack = iop13xx_irq_mask0, |
176 | .mask = iop13xx_irq_mask0, | 176 | .irq_mask = iop13xx_irq_mask0, |
177 | .unmask = iop13xx_irq_unmask0, | 177 | .irq_unmask = iop13xx_irq_unmask0, |
178 | }; | 178 | }; |
179 | 179 | ||
180 | static struct irq_chip iop13xx_irqchip2 = { | 180 | static struct irq_chip iop13xx_irqchip2 = { |
181 | .name = "IOP13xx-2", | 181 | .name = "IOP13xx-2", |
182 | .ack = iop13xx_irq_mask1, | 182 | .irq_ack = iop13xx_irq_mask1, |
183 | .mask = iop13xx_irq_mask1, | 183 | .irq_mask = iop13xx_irq_mask1, |
184 | .unmask = iop13xx_irq_unmask1, | 184 | .irq_unmask = iop13xx_irq_unmask1, |
185 | }; | 185 | }; |
186 | 186 | ||
187 | static struct irq_chip iop13xx_irqchip3 = { | 187 | static struct irq_chip iop13xx_irqchip3 = { |
188 | .name = "IOP13xx-3", | 188 | .name = "IOP13xx-3", |
189 | .ack = iop13xx_irq_mask2, | 189 | .irq_ack = iop13xx_irq_mask2, |
190 | .mask = iop13xx_irq_mask2, | 190 | .irq_mask = iop13xx_irq_mask2, |
191 | .unmask = iop13xx_irq_unmask2, | 191 | .irq_unmask = iop13xx_irq_unmask2, |
192 | }; | 192 | }; |
193 | 193 | ||
194 | static struct irq_chip iop13xx_irqchip4 = { | 194 | static struct irq_chip iop13xx_irqchip4 = { |
195 | .name = "IOP13xx-4", | 195 | .name = "IOP13xx-4", |
196 | .ack = iop13xx_irq_mask3, | 196 | .irq_ack = iop13xx_irq_mask3, |
197 | .mask = iop13xx_irq_mask3, | 197 | .irq_mask = iop13xx_irq_mask3, |
198 | .unmask = iop13xx_irq_unmask3, | 198 | .irq_unmask = iop13xx_irq_unmask3, |
199 | }; | 199 | }; |
200 | 200 | ||
201 | extern void iop_init_cp6_handler(void); | 201 | extern void iop_init_cp6_handler(void); |
diff --git a/arch/arm/mach-iop13xx/msi.c b/arch/arm/mach-iop13xx/msi.c index 7149fcc16c8a..c9c02e3698bc 100644 --- a/arch/arm/mach-iop13xx/msi.c +++ b/arch/arm/mach-iop13xx/msi.c | |||
@@ -156,14 +156,14 @@ void arch_teardown_msi_irq(unsigned int irq) | |||
156 | destroy_irq(irq); | 156 | destroy_irq(irq); |
157 | } | 157 | } |
158 | 158 | ||
159 | static void iop13xx_msi_nop(unsigned int irq) | 159 | static void iop13xx_msi_nop(struct irq_data *d) |
160 | { | 160 | { |
161 | return; | 161 | return; |
162 | } | 162 | } |
163 | 163 | ||
164 | static struct irq_chip iop13xx_msi_chip = { | 164 | static struct irq_chip iop13xx_msi_chip = { |
165 | .name = "PCI-MSI", | 165 | .name = "PCI-MSI", |
166 | .ack = iop13xx_msi_nop, | 166 | .irq_ack = iop13xx_msi_nop, |
167 | .irq_enable = unmask_msi_irq, | 167 | .irq_enable = unmask_msi_irq, |
168 | .irq_disable = mask_msi_irq, | 168 | .irq_disable = mask_msi_irq, |
169 | .irq_mask = mask_msi_irq, | 169 | .irq_mask = mask_msi_irq, |