diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-06 13:53:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-06 13:59:54 -0400 |
commit | 0cd61b68c340a4f901a06e8bb5e0dea4353161c0 (patch) | |
tree | cfd72be941ecd172627a06dd61d98b55cec63a39 /arch/arm/common | |
parent | da104a83692cf07434ab3b20bf10093bdbc3f97e (diff) |
Initial blind fixup for arm for irq changes
Untested, but this should fix up the bulk of the totally mechanical
issues, and should make the actual detail fixing easier.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/arm/common')
-rw-r--r-- | arch/arm/common/locomo.c | 25 | ||||
-rw-r--r-- | arch/arm/common/sa1111.c | 8 | ||||
-rw-r--r-- | arch/arm/common/sharpsl_pm.c | 6 | ||||
-rw-r--r-- | arch/arm/common/time-acorn.c | 4 |
4 files changed, 19 insertions, 24 deletions
diff --git a/arch/arm/common/locomo.c b/arch/arm/common/locomo.c index 181ef1ead5b8..80a72c75214f 100644 --- a/arch/arm/common/locomo.c +++ b/arch/arm/common/locomo.c | |||
@@ -163,8 +163,7 @@ static struct locomo_dev_info locomo_devices[] = { | |||
163 | #define LOCOMO_IRQ_LT_START (IRQ_LOCOMO_LT) | 163 | #define LOCOMO_IRQ_LT_START (IRQ_LOCOMO_LT) |
164 | #define LOCOMO_IRQ_SPI_START (IRQ_LOCOMO_SPI_RFR) | 164 | #define LOCOMO_IRQ_SPI_START (IRQ_LOCOMO_SPI_RFR) |
165 | 165 | ||
166 | static void locomo_handler(unsigned int irq, struct irqdesc *desc, | 166 | static void locomo_handler(unsigned int irq, struct irqdesc *desc) |
167 | struct pt_regs *regs) | ||
168 | { | 167 | { |
169 | int req, i; | 168 | int req, i; |
170 | struct irqdesc *d; | 169 | struct irqdesc *d; |
@@ -182,7 +181,7 @@ static void locomo_handler(unsigned int irq, struct irqdesc *desc, | |||
182 | d = irq_desc + irq; | 181 | d = irq_desc + irq; |
183 | for (i = 0; i <= 3; i++, d++, irq++) { | 182 | for (i = 0; i <= 3; i++, d++, irq++) { |
184 | if (req & (0x0100 << i)) { | 183 | if (req & (0x0100 << i)) { |
185 | desc_handle_irq(irq, d, regs); | 184 | desc_handle_irq(irq, d); |
186 | } | 185 | } |
187 | 186 | ||
188 | } | 187 | } |
@@ -218,15 +217,14 @@ static struct irq_chip locomo_chip = { | |||
218 | .unmask = locomo_unmask_irq, | 217 | .unmask = locomo_unmask_irq, |
219 | }; | 218 | }; |
220 | 219 | ||
221 | static void locomo_key_handler(unsigned int irq, struct irqdesc *desc, | 220 | static void locomo_key_handler(unsigned int irq, struct irqdesc *desc) |
222 | struct pt_regs *regs) | ||
223 | { | 221 | { |
224 | struct irqdesc *d; | 222 | struct irqdesc *d; |
225 | void __iomem *mapbase = get_irq_chipdata(irq); | 223 | void __iomem *mapbase = get_irq_chipdata(irq); |
226 | 224 | ||
227 | if (locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC) & 0x0001) { | 225 | if (locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC) & 0x0001) { |
228 | d = irq_desc + LOCOMO_IRQ_KEY_START; | 226 | d = irq_desc + LOCOMO_IRQ_KEY_START; |
229 | desc_handle_irq(LOCOMO_IRQ_KEY_START, d, regs); | 227 | desc_handle_irq(LOCOMO_IRQ_KEY_START, d); |
230 | } | 228 | } |
231 | } | 229 | } |
232 | 230 | ||
@@ -264,8 +262,7 @@ static struct irq_chip locomo_key_chip = { | |||
264 | .unmask = locomo_key_unmask_irq, | 262 | .unmask = locomo_key_unmask_irq, |
265 | }; | 263 | }; |
266 | 264 | ||
267 | static void locomo_gpio_handler(unsigned int irq, struct irqdesc *desc, | 265 | static void locomo_gpio_handler(unsigned int irq, struct irqdesc *desc) |
268 | struct pt_regs *regs) | ||
269 | { | 266 | { |
270 | int req, i; | 267 | int req, i; |
271 | struct irqdesc *d; | 268 | struct irqdesc *d; |
@@ -280,7 +277,7 @@ static void locomo_gpio_handler(unsigned int irq, struct irqdesc *desc, | |||
280 | d = irq_desc + LOCOMO_IRQ_GPIO_START; | 277 | d = irq_desc + LOCOMO_IRQ_GPIO_START; |
281 | for (i = 0; i <= 15; i++, irq++, d++) { | 278 | for (i = 0; i <= 15; i++, irq++, d++) { |
282 | if (req & (0x0001 << i)) { | 279 | if (req & (0x0001 << i)) { |
283 | desc_handle_irq(irq, d, regs); | 280 | desc_handle_irq(irq, d); |
284 | } | 281 | } |
285 | } | 282 | } |
286 | } | 283 | } |
@@ -328,15 +325,14 @@ static struct irq_chip locomo_gpio_chip = { | |||
328 | .unmask = locomo_gpio_unmask_irq, | 325 | .unmask = locomo_gpio_unmask_irq, |
329 | }; | 326 | }; |
330 | 327 | ||
331 | static void locomo_lt_handler(unsigned int irq, struct irqdesc *desc, | 328 | static void locomo_lt_handler(unsigned int irq, struct irqdesc *desc) |
332 | struct pt_regs *regs) | ||
333 | { | 329 | { |
334 | struct irqdesc *d; | 330 | struct irqdesc *d; |
335 | void __iomem *mapbase = get_irq_chipdata(irq); | 331 | void __iomem *mapbase = get_irq_chipdata(irq); |
336 | 332 | ||
337 | if (locomo_readl(mapbase + LOCOMO_LTINT) & 0x0001) { | 333 | if (locomo_readl(mapbase + LOCOMO_LTINT) & 0x0001) { |
338 | d = irq_desc + LOCOMO_IRQ_LT_START; | 334 | d = irq_desc + LOCOMO_IRQ_LT_START; |
339 | desc_handle_irq(LOCOMO_IRQ_LT_START, d, regs); | 335 | desc_handle_irq(LOCOMO_IRQ_LT_START, d); |
340 | } | 336 | } |
341 | } | 337 | } |
342 | 338 | ||
@@ -374,8 +370,7 @@ static struct irq_chip locomo_lt_chip = { | |||
374 | .unmask = locomo_lt_unmask_irq, | 370 | .unmask = locomo_lt_unmask_irq, |
375 | }; | 371 | }; |
376 | 372 | ||
377 | static void locomo_spi_handler(unsigned int irq, struct irqdesc *desc, | 373 | static void locomo_spi_handler(unsigned int irq, struct irqdesc *desc) |
378 | struct pt_regs *regs) | ||
379 | { | 374 | { |
380 | int req, i; | 375 | int req, i; |
381 | struct irqdesc *d; | 376 | struct irqdesc *d; |
@@ -388,7 +383,7 @@ static void locomo_spi_handler(unsigned int irq, struct irqdesc *desc, | |||
388 | 383 | ||
389 | for (i = 0; i <= 3; i++, irq++, d++) { | 384 | for (i = 0; i <= 3; i++, irq++, d++) { |
390 | if (req & (0x0001 << i)) { | 385 | if (req & (0x0001 << i)) { |
391 | desc_handle_irq(irq, d, regs); | 386 | desc_handle_irq(irq, d); |
392 | } | 387 | } |
393 | } | 388 | } |
394 | } | 389 | } |
diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c index 30046ad41ced..d5f72010a6f3 100644 --- a/arch/arm/common/sa1111.c +++ b/arch/arm/common/sa1111.c | |||
@@ -147,7 +147,7 @@ void __init sa1111_adjust_zones(int node, unsigned long *size, unsigned long *ho | |||
147 | * will call us again if there are more interrupts to process. | 147 | * will call us again if there are more interrupts to process. |
148 | */ | 148 | */ |
149 | static void | 149 | static void |
150 | sa1111_irq_handler(unsigned int irq, struct irqdesc *desc, struct pt_regs *regs) | 150 | sa1111_irq_handler(unsigned int irq, struct irqdesc *desc) |
151 | { | 151 | { |
152 | unsigned int stat0, stat1, i; | 152 | unsigned int stat0, stat1, i; |
153 | void __iomem *base = get_irq_data(irq); | 153 | void __iomem *base = get_irq_data(irq); |
@@ -162,17 +162,17 @@ sa1111_irq_handler(unsigned int irq, struct irqdesc *desc, struct pt_regs *regs) | |||
162 | sa1111_writel(stat1, base + SA1111_INTSTATCLR1); | 162 | sa1111_writel(stat1, base + SA1111_INTSTATCLR1); |
163 | 163 | ||
164 | if (stat0 == 0 && stat1 == 0) { | 164 | if (stat0 == 0 && stat1 == 0) { |
165 | do_bad_IRQ(irq, desc, regs); | 165 | do_bad_IRQ(irq, desc); |
166 | return; | 166 | return; |
167 | } | 167 | } |
168 | 168 | ||
169 | for (i = IRQ_SA1111_START; stat0; i++, stat0 >>= 1) | 169 | for (i = IRQ_SA1111_START; stat0; i++, stat0 >>= 1) |
170 | if (stat0 & 1) | 170 | if (stat0 & 1) |
171 | handle_edge_irq(i, irq_desc + i, regs); | 171 | handle_edge_irq(i, irq_desc + i); |
172 | 172 | ||
173 | for (i = IRQ_SA1111_START + 32; stat1; i++, stat1 >>= 1) | 173 | for (i = IRQ_SA1111_START + 32; stat1; i++, stat1 >>= 1) |
174 | if (stat1 & 1) | 174 | if (stat1 & 1) |
175 | handle_edge_irq(i, irq_desc + i, regs); | 175 | handle_edge_irq(i, irq_desc + i); |
176 | 176 | ||
177 | /* For level-based interrupts */ | 177 | /* For level-based interrupts */ |
178 | desc->chip->unmask(irq); | 178 | desc->chip->unmask(irq); |
diff --git a/arch/arm/common/sharpsl_pm.c b/arch/arm/common/sharpsl_pm.c index f412dedda684..605dedf96790 100644 --- a/arch/arm/common/sharpsl_pm.c +++ b/arch/arm/common/sharpsl_pm.c | |||
@@ -258,7 +258,7 @@ static void sharpsl_ac_timer(unsigned long data) | |||
258 | } | 258 | } |
259 | 259 | ||
260 | 260 | ||
261 | irqreturn_t sharpsl_ac_isr(int irq, void *dev_id, struct pt_regs *fp) | 261 | irqreturn_t sharpsl_ac_isr(int irq, void *dev_id) |
262 | { | 262 | { |
263 | /* Delay the event slightly to debounce */ | 263 | /* Delay the event slightly to debounce */ |
264 | /* Must be a smaller delay than the chrg_full_isr below */ | 264 | /* Must be a smaller delay than the chrg_full_isr below */ |
@@ -293,7 +293,7 @@ static void sharpsl_chrg_full_timer(unsigned long data) | |||
293 | /* Charging Finished Interrupt (Not present on Corgi) */ | 293 | /* Charging Finished Interrupt (Not present on Corgi) */ |
294 | /* Can trigger at the same time as an AC staus change so | 294 | /* Can trigger at the same time as an AC staus change so |
295 | delay until after that has been processed */ | 295 | delay until after that has been processed */ |
296 | irqreturn_t sharpsl_chrg_full_isr(int irq, void *dev_id, struct pt_regs *fp) | 296 | irqreturn_t sharpsl_chrg_full_isr(int irq, void *dev_id) |
297 | { | 297 | { |
298 | if (sharpsl_pm.flags & SHARPSL_SUSPENDED) | 298 | if (sharpsl_pm.flags & SHARPSL_SUSPENDED) |
299 | return IRQ_HANDLED; | 299 | return IRQ_HANDLED; |
@@ -304,7 +304,7 @@ irqreturn_t sharpsl_chrg_full_isr(int irq, void *dev_id, struct pt_regs *fp) | |||
304 | return IRQ_HANDLED; | 304 | return IRQ_HANDLED; |
305 | } | 305 | } |
306 | 306 | ||
307 | irqreturn_t sharpsl_fatal_isr(int irq, void *dev_id, struct pt_regs *fp) | 307 | irqreturn_t sharpsl_fatal_isr(int irq, void *dev_id) |
308 | { | 308 | { |
309 | int is_fatal = 0; | 309 | int is_fatal = 0; |
310 | 310 | ||
diff --git a/arch/arm/common/time-acorn.c b/arch/arm/common/time-acorn.c index 3f60dd9aca80..34038eccbba9 100644 --- a/arch/arm/common/time-acorn.c +++ b/arch/arm/common/time-acorn.c | |||
@@ -67,10 +67,10 @@ void __init ioctime_init(void) | |||
67 | } | 67 | } |
68 | 68 | ||
69 | static irqreturn_t | 69 | static irqreturn_t |
70 | ioc_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) | 70 | ioc_timer_interrupt(int irq, void *dev_id) |
71 | { | 71 | { |
72 | write_seqlock(&xtime_lock); | 72 | write_seqlock(&xtime_lock); |
73 | timer_tick(regs); | 73 | timer_tick(); |
74 | write_sequnlock(&xtime_lock); | 74 | write_sequnlock(&xtime_lock); |
75 | return IRQ_HANDLED; | 75 | return IRQ_HANDLED; |
76 | } | 76 | } |