Commit 64c4813d9ea0d646a0652bd9dcc5b40db6ddce69
Exists in
master
and in
4 other branches
Merge master.kernel.org:/home/rmk/linux-2.6-arm
Showing 34 changed files Side-by-side Diff
- arch/arm/common/locomo.c
- arch/arm/common/sa1111.c
- arch/arm/kernel/ecard.c
- arch/arm/kernel/irq.c
- arch/arm/kernel/smp.c
- arch/arm/mach-footbridge/isa-irq.c
- arch/arm/mach-h720x/common.c
- arch/arm/mach-h720x/cpu-h7202.c
- arch/arm/mach-imx/irq.c
- arch/arm/mach-integrator/integrator_cp.c
- arch/arm/mach-ixp2000/core.c
- arch/arm/mach-ixp2000/ixdp2x00.c
- arch/arm/mach-ixp2000/ixdp2x01.c
- arch/arm/mach-lh7a40x/common.h
- arch/arm/mach-omap1/fpga.c
- arch/arm/mach-pxa/irq.c
- arch/arm/mach-pxa/lubbock.c
- arch/arm/mach-pxa/mainstone.c
- arch/arm/mach-s3c2410/bast-irq.c
- arch/arm/mach-s3c2410/irq.c
- arch/arm/mach-s3c2410/pm.c
- arch/arm/mach-s3c2410/s3c2440-irq.c
- arch/arm/mach-sa1100/irq.c
- arch/arm/mach-sa1100/neponset.c
- arch/arm/mach-versatile/core.c
- arch/arm/mm/proc-arm6_7.S
- arch/arm/plat-omap/gpio.c
- drivers/pcmcia/pxa2xx_base.c
- drivers/pcmcia/pxa2xx_mainstone.c
- drivers/pcmcia/pxa2xx_sharpsl.c
- drivers/pcmcia/sa1100_generic.c
- drivers/pcmcia/sa1111_generic.c
- drivers/pcmcia/sa11xx_base.c
- include/asm-arm/mach/irq.h
arch/arm/common/locomo.c
| ... | ... | @@ -177,7 +177,7 @@ |
| 177 | 177 | d = irq_desc + irq; |
| 178 | 178 | for (i = 0; i <= 3; i++, d++, irq++) { |
| 179 | 179 | if (req & (0x0100 << i)) { |
| 180 | - d->handle(irq, d, regs); | |
| 180 | + desc_handle_irq(irq, d, regs); | |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | } |
| ... | ... | @@ -220,7 +220,7 @@ |
| 220 | 220 | |
| 221 | 221 | if (locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC) & 0x0001) { |
| 222 | 222 | d = irq_desc + LOCOMO_IRQ_KEY_START; |
| 223 | - d->handle(LOCOMO_IRQ_KEY_START, d, regs); | |
| 223 | + desc_handle_irq(LOCOMO_IRQ_KEY_START, d, regs); | |
| 224 | 224 | } |
| 225 | 225 | } |
| 226 | 226 | |
| ... | ... | @@ -273,7 +273,7 @@ |
| 273 | 273 | d = irq_desc + LOCOMO_IRQ_GPIO_START; |
| 274 | 274 | for (i = 0; i <= 15; i++, irq++, d++) { |
| 275 | 275 | if (req & (0x0001 << i)) { |
| 276 | - d->handle(irq, d, regs); | |
| 276 | + desc_handle_irq(irq, d, regs); | |
| 277 | 277 | } |
| 278 | 278 | } |
| 279 | 279 | } |
| ... | ... | @@ -328,7 +328,7 @@ |
| 328 | 328 | |
| 329 | 329 | if (locomo_readl(mapbase + LOCOMO_LTINT) & 0x0001) { |
| 330 | 330 | d = irq_desc + LOCOMO_IRQ_LT_START; |
| 331 | - d->handle(LOCOMO_IRQ_LT_START, d, regs); | |
| 331 | + desc_handle_irq(LOCOMO_IRQ_LT_START, d, regs); | |
| 332 | 332 | } |
| 333 | 333 | } |
| 334 | 334 | |
| ... | ... | @@ -379,7 +379,7 @@ |
| 379 | 379 | |
| 380 | 380 | for (i = 0; i <= 3; i++, irq++, d++) { |
| 381 | 381 | if (req & (0x0001 << i)) { |
| 382 | - d->handle(irq, d, regs); | |
| 382 | + desc_handle_irq(irq, d, regs); | |
| 383 | 383 | } |
| 384 | 384 | } |
| 385 | 385 | } |
| 386 | 386 | |
| 387 | 387 | |
| ... | ... | @@ -651,15 +651,15 @@ |
| 651 | 651 | return ret; |
| 652 | 652 | } |
| 653 | 653 | |
| 654 | -static void __locomo_remove(struct locomo *lchip) | |
| 654 | +static int locomo_remove_child(struct device *dev, void *data) | |
| 655 | 655 | { |
| 656 | - struct list_head *l, *n; | |
| 656 | + device_unregister(dev); | |
| 657 | + return 0; | |
| 658 | +} | |
| 657 | 659 | |
| 658 | - list_for_each_safe(l, n, &lchip->dev->children) { | |
| 659 | - struct device *d = list_to_dev(l); | |
| 660 | - | |
| 661 | - device_unregister(d); | |
| 662 | - } | |
| 660 | +static void __locomo_remove(struct locomo *lchip) | |
| 661 | +{ | |
| 662 | + device_for_each_child(lchip->dev, NULL, locomo_remove_child); | |
| 663 | 663 | |
| 664 | 664 | if (lchip->irq != NO_IRQ) { |
| 665 | 665 | set_irq_chained_handler(lchip->irq, NULL); |
arch/arm/common/sa1111.c
| ... | ... | @@ -268,8 +268,8 @@ |
| 268 | 268 | .mask = sa1111_mask_lowirq, |
| 269 | 269 | .unmask = sa1111_unmask_lowirq, |
| 270 | 270 | .retrigger = sa1111_retrigger_lowirq, |
| 271 | - .type = sa1111_type_lowirq, | |
| 272 | - .wake = sa1111_wake_lowirq, | |
| 271 | + .set_type = sa1111_type_lowirq, | |
| 272 | + .set_wake = sa1111_wake_lowirq, | |
| 273 | 273 | }; |
| 274 | 274 | |
| 275 | 275 | static void sa1111_mask_highirq(unsigned int irq) |
| ... | ... | @@ -364,8 +364,8 @@ |
| 364 | 364 | .mask = sa1111_mask_highirq, |
| 365 | 365 | .unmask = sa1111_unmask_highirq, |
| 366 | 366 | .retrigger = sa1111_retrigger_highirq, |
| 367 | - .type = sa1111_type_highirq, | |
| 368 | - .wake = sa1111_wake_highirq, | |
| 367 | + .set_type = sa1111_type_highirq, | |
| 368 | + .set_wake = sa1111_wake_highirq, | |
| 369 | 369 | }; |
| 370 | 370 | |
| 371 | 371 | static void sa1111_setup_irq(struct sa1111 *sachip) |
arch/arm/kernel/ecard.c
| ... | ... | @@ -585,7 +585,7 @@ |
| 585 | 585 | |
| 586 | 586 | if (pending) { |
| 587 | 587 | struct irqdesc *d = irq_desc + ec->irq; |
| 588 | - d->handle(ec->irq, d, regs); | |
| 588 | + desc_handle_irq(ec->irq, d, regs); | |
| 589 | 589 | called ++; |
| 590 | 590 | } |
| 591 | 591 | } |
| ... | ... | @@ -632,7 +632,7 @@ |
| 632 | 632 | * Serial cards should go in 0/1, ethernet/scsi in 2/3 |
| 633 | 633 | * otherwise you will lose serial data at high speeds! |
| 634 | 634 | */ |
| 635 | - d->handle(ec->irq, d, regs); | |
| 635 | + desc_handle_irq(ec->irq, d, regs); | |
| 636 | 636 | } else { |
| 637 | 637 | printk(KERN_WARNING "card%d: interrupt from unclaimed " |
| 638 | 638 | "card???\n", slot); |
arch/arm/kernel/irq.c
| ... | ... | @@ -207,8 +207,8 @@ |
| 207 | 207 | unsigned long flags; |
| 208 | 208 | |
| 209 | 209 | spin_lock_irqsave(&irq_controller_lock, flags); |
| 210 | - if (desc->chip->wake) | |
| 211 | - desc->chip->wake(irq, 1); | |
| 210 | + if (desc->chip->set_wake) | |
| 211 | + desc->chip->set_wake(irq, 1); | |
| 212 | 212 | spin_unlock_irqrestore(&irq_controller_lock, flags); |
| 213 | 213 | } |
| 214 | 214 | EXPORT_SYMBOL(enable_irq_wake); |
| ... | ... | @@ -219,8 +219,8 @@ |
| 219 | 219 | unsigned long flags; |
| 220 | 220 | |
| 221 | 221 | spin_lock_irqsave(&irq_controller_lock, flags); |
| 222 | - if (desc->chip->wake) | |
| 223 | - desc->chip->wake(irq, 0); | |
| 222 | + if (desc->chip->set_wake) | |
| 223 | + desc->chip->set_wake(irq, 0); | |
| 224 | 224 | spin_unlock_irqrestore(&irq_controller_lock, flags); |
| 225 | 225 | } |
| 226 | 226 | EXPORT_SYMBOL(disable_irq_wake); |
| ... | ... | @@ -517,7 +517,7 @@ |
| 517 | 517 | list_for_each_safe(l, n, &head) { |
| 518 | 518 | desc = list_entry(l, struct irqdesc, pend); |
| 519 | 519 | list_del_init(&desc->pend); |
| 520 | - desc->handle(desc - irq_desc, desc, regs); | |
| 520 | + desc_handle_irq(desc - irq_desc, desc, regs); | |
| 521 | 521 | } |
| 522 | 522 | |
| 523 | 523 | /* |
| ... | ... | @@ -545,7 +545,7 @@ |
| 545 | 545 | |
| 546 | 546 | irq_enter(); |
| 547 | 547 | spin_lock(&irq_controller_lock); |
| 548 | - desc->handle(irq, desc, regs); | |
| 548 | + desc_handle_irq(irq, desc, regs); | |
| 549 | 549 | |
| 550 | 550 | /* |
| 551 | 551 | * Now re-run any pending interrupts. |
| 552 | 552 | |
| ... | ... | @@ -624,9 +624,9 @@ |
| 624 | 624 | } |
| 625 | 625 | |
| 626 | 626 | desc = irq_desc + irq; |
| 627 | - if (desc->chip->type) { | |
| 627 | + if (desc->chip->set_type) { | |
| 628 | 628 | spin_lock_irqsave(&irq_controller_lock, flags); |
| 629 | - ret = desc->chip->type(irq, type); | |
| 629 | + ret = desc->chip->set_type(irq, type); | |
| 630 | 630 | spin_unlock_irqrestore(&irq_controller_lock, flags); |
| 631 | 631 | } |
| 632 | 632 | |
| ... | ... | @@ -846,8 +846,8 @@ |
| 846 | 846 | |
| 847 | 847 | irq_desc[i].probing = 1; |
| 848 | 848 | irq_desc[i].triggered = 0; |
| 849 | - if (irq_desc[i].chip->type) | |
| 850 | - irq_desc[i].chip->type(i, IRQT_PROBE); | |
| 849 | + if (irq_desc[i].chip->set_type) | |
| 850 | + irq_desc[i].chip->set_type(i, IRQT_PROBE); | |
| 851 | 851 | irq_desc[i].chip->unmask(i); |
| 852 | 852 | irqs += 1; |
| 853 | 853 | } |
arch/arm/kernel/smp.c
| ... | ... | @@ -110,7 +110,7 @@ |
| 110 | 110 | * We need to tell the secondary core where to find |
| 111 | 111 | * its stack and the page tables. |
| 112 | 112 | */ |
| 113 | - secondary_data.stack = (void *)idle->thread_info + THREAD_SIZE - 8; | |
| 113 | + secondary_data.stack = (void *)idle->thread_info + THREAD_START_SP; | |
| 114 | 114 | secondary_data.pgdir = virt_to_phys(pgd); |
| 115 | 115 | wmb(); |
| 116 | 116 |
arch/arm/mach-footbridge/isa-irq.c
arch/arm/mach-h720x/common.c
arch/arm/mach-h720x/cpu-h7202.c
arch/arm/mach-imx/irq.c
| ... | ... | @@ -152,7 +152,7 @@ |
| 152 | 152 | while (mask) { |
| 153 | 153 | if (mask & 1) { |
| 154 | 154 | DEBUG_IRQ("handling irq %d\n", irq); |
| 155 | - desc->handle(irq, desc, regs); | |
| 155 | + desc_handle_irq(irq, desc, regs); | |
| 156 | 156 | } |
| 157 | 157 | irq++; |
| 158 | 158 | desc++; |
| ... | ... | @@ -214,7 +214,7 @@ |
| 214 | 214 | .ack = imx_gpio_ack_irq, |
| 215 | 215 | .mask = imx_gpio_mask_irq, |
| 216 | 216 | .unmask = imx_gpio_unmask_irq, |
| 217 | - .type = imx_gpio_irq_type, | |
| 217 | + .set_type = imx_gpio_irq_type, | |
| 218 | 218 | }; |
| 219 | 219 | |
| 220 | 220 | void __init |
arch/arm/mach-integrator/integrator_cp.c
arch/arm/mach-ixp2000/core.c
| ... | ... | @@ -317,7 +317,7 @@ |
| 317 | 317 | for (i = 0; i <= 7; i++) { |
| 318 | 318 | if (status & (1<<i)) { |
| 319 | 319 | desc = irq_desc + i + IRQ_IXP2000_GPIO0; |
| 320 | - desc->handle(i + IRQ_IXP2000_GPIO0, desc, regs); | |
| 320 | + desc_handle_irq(i + IRQ_IXP2000_GPIO0, desc, regs); | |
| 321 | 321 | } |
| 322 | 322 | } |
| 323 | 323 | } |
| ... | ... | @@ -380,10 +380,10 @@ |
| 380 | 380 | } |
| 381 | 381 | |
| 382 | 382 | static struct irqchip ixp2000_GPIO_irq_chip = { |
| 383 | - .type = ixp2000_GPIO_irq_type, | |
| 384 | - .ack = ixp2000_GPIO_irq_mask_ack, | |
| 385 | - .mask = ixp2000_GPIO_irq_mask, | |
| 386 | - .unmask = ixp2000_GPIO_irq_unmask | |
| 383 | + .ack = ixp2000_GPIO_irq_mask_ack, | |
| 384 | + .mask = ixp2000_GPIO_irq_mask, | |
| 385 | + .unmask = ixp2000_GPIO_irq_unmask | |
| 386 | + .set_type = ixp2000_GPIO_irq_type, | |
| 387 | 387 | }; |
| 388 | 388 | |
| 389 | 389 | static void ixp2000_pci_irq_mask(unsigned int irq) |
arch/arm/mach-ixp2000/ixdp2x00.c
arch/arm/mach-ixp2000/ixdp2x01.c
arch/arm/mach-lh7a40x/common.h
arch/arm/mach-omap1/fpga.c
arch/arm/mach-pxa/irq.c
| ... | ... | @@ -133,7 +133,7 @@ |
| 133 | 133 | .ack = pxa_ack_low_gpio, |
| 134 | 134 | .mask = pxa_mask_low_irq, |
| 135 | 135 | .unmask = pxa_unmask_low_irq, |
| 136 | - .type = pxa_gpio_irq_type, | |
| 136 | + .set_type = pxa_gpio_irq_type, | |
| 137 | 137 | }; |
| 138 | 138 | |
| 139 | 139 | /* |
| ... | ... | @@ -157,7 +157,7 @@ |
| 157 | 157 | mask >>= 2; |
| 158 | 158 | do { |
| 159 | 159 | if (mask & 1) |
| 160 | - desc->handle(irq, desc, regs); | |
| 160 | + desc_handle_irq(irq, desc, regs); | |
| 161 | 161 | irq++; |
| 162 | 162 | desc++; |
| 163 | 163 | mask >>= 1; |
| ... | ... | @@ -172,7 +172,7 @@ |
| 172 | 172 | desc = irq_desc + irq; |
| 173 | 173 | do { |
| 174 | 174 | if (mask & 1) |
| 175 | - desc->handle(irq, desc, regs); | |
| 175 | + desc_handle_irq(irq, desc, regs); | |
| 176 | 176 | irq++; |
| 177 | 177 | desc++; |
| 178 | 178 | mask >>= 1; |
| ... | ... | @@ -187,7 +187,7 @@ |
| 187 | 187 | desc = irq_desc + irq; |
| 188 | 188 | do { |
| 189 | 189 | if (mask & 1) |
| 190 | - desc->handle(irq, desc, regs); | |
| 190 | + desc_handle_irq(irq, desc, regs); | |
| 191 | 191 | irq++; |
| 192 | 192 | desc++; |
| 193 | 193 | mask >>= 1; |
| ... | ... | @@ -203,7 +203,7 @@ |
| 203 | 203 | desc = irq_desc + irq; |
| 204 | 204 | do { |
| 205 | 205 | if (mask & 1) |
| 206 | - desc->handle(irq, desc, regs); | |
| 206 | + desc_handle_irq(irq, desc, regs); | |
| 207 | 207 | irq++; |
| 208 | 208 | desc++; |
| 209 | 209 | mask >>= 1; |
| ... | ... | @@ -241,7 +241,7 @@ |
| 241 | 241 | .ack = pxa_ack_muxed_gpio, |
| 242 | 242 | .mask = pxa_mask_muxed_gpio, |
| 243 | 243 | .unmask = pxa_unmask_muxed_gpio, |
| 244 | - .type = pxa_gpio_irq_type, | |
| 244 | + .set_type = pxa_gpio_irq_type, | |
| 245 | 245 | }; |
| 246 | 246 | |
| 247 | 247 |
arch/arm/mach-pxa/lubbock.c
arch/arm/mach-pxa/mainstone.c
arch/arm/mach-s3c2410/bast-irq.c
arch/arm/mach-s3c2410/irq.c
| ... | ... | @@ -184,14 +184,14 @@ |
| 184 | 184 | .ack = s3c_irq_maskack, |
| 185 | 185 | .mask = s3c_irq_mask, |
| 186 | 186 | .unmask = s3c_irq_unmask, |
| 187 | - .wake = s3c_irq_wake | |
| 187 | + .set_wake = s3c_irq_wake | |
| 188 | 188 | }; |
| 189 | 189 | |
| 190 | 190 | static struct irqchip s3c_irq_chip = { |
| 191 | 191 | .ack = s3c_irq_ack, |
| 192 | 192 | .mask = s3c_irq_mask, |
| 193 | 193 | .unmask = s3c_irq_unmask, |
| 194 | - .wake = s3c_irq_wake | |
| 194 | + .set_wake = s3c_irq_wake | |
| 195 | 195 | }; |
| 196 | 196 | |
| 197 | 197 | /* S3C2410_EINTMASK |
| 198 | 198 | |
| ... | ... | @@ -350,16 +350,16 @@ |
| 350 | 350 | .mask = s3c_irqext_mask, |
| 351 | 351 | .unmask = s3c_irqext_unmask, |
| 352 | 352 | .ack = s3c_irqext_ack, |
| 353 | - .type = s3c_irqext_type, | |
| 354 | - .wake = s3c_irqext_wake | |
| 353 | + .set_type = s3c_irqext_type, | |
| 354 | + .set_wake = s3c_irqext_wake | |
| 355 | 355 | }; |
| 356 | 356 | |
| 357 | 357 | static struct irqchip s3c_irq_eint0t4 = { |
| 358 | 358 | .ack = s3c_irq_ack, |
| 359 | 359 | .mask = s3c_irq_mask, |
| 360 | 360 | .unmask = s3c_irq_unmask, |
| 361 | - .wake = s3c_irq_wake, | |
| 362 | - .type = s3c_irqext_type, | |
| 361 | + .set_wake = s3c_irq_wake, | |
| 362 | + .set_type = s3c_irqext_type, | |
| 363 | 363 | }; |
| 364 | 364 | |
| 365 | 365 | /* mask values for the parent registers for each of the interrupt types */ |
| 366 | 366 | |
| ... | ... | @@ -496,11 +496,11 @@ |
| 496 | 496 | if (subsrc != 0) { |
| 497 | 497 | if (subsrc & 1) { |
| 498 | 498 | mydesc = irq_desc + IRQ_TC; |
| 499 | - mydesc->handle( IRQ_TC, mydesc, regs); | |
| 499 | + desc_handle_irq(IRQ_TC, mydesc, regs); | |
| 500 | 500 | } |
| 501 | 501 | if (subsrc & 2) { |
| 502 | 502 | mydesc = irq_desc + IRQ_ADC; |
| 503 | - mydesc->handle(IRQ_ADC, mydesc, regs); | |
| 503 | + desc_handle_irq(IRQ_ADC, mydesc, regs); | |
| 504 | 504 | } |
| 505 | 505 | } |
| 506 | 506 | } |
| 507 | 507 | |
| 508 | 508 | |
| ... | ... | @@ -529,17 +529,17 @@ |
| 529 | 529 | desc = irq_desc + start; |
| 530 | 530 | |
| 531 | 531 | if (subsrc & 1) |
| 532 | - desc->handle(start, desc, regs); | |
| 532 | + desc_handle_irq(start, desc, regs); | |
| 533 | 533 | |
| 534 | 534 | desc++; |
| 535 | 535 | |
| 536 | 536 | if (subsrc & 2) |
| 537 | - desc->handle(start+1, desc, regs); | |
| 537 | + desc_handle_irq(start+1, desc, regs); | |
| 538 | 538 | |
| 539 | 539 | desc++; |
| 540 | 540 | |
| 541 | 541 | if (subsrc & 4) |
| 542 | - desc->handle(start+2, desc, regs); | |
| 542 | + desc_handle_irq(start+2, desc, regs); | |
| 543 | 543 | } |
| 544 | 544 | } |
| 545 | 545 |
arch/arm/mach-s3c2410/pm.c
| ... | ... | @@ -585,13 +585,15 @@ |
| 585 | 585 | |
| 586 | 586 | s3c2410_pm_check_store(); |
| 587 | 587 | |
| 588 | - // need to make some form of time-delta | |
| 589 | - | |
| 590 | 588 | /* send the cpu to sleep... */ |
| 591 | 589 | |
| 592 | 590 | __raw_writel(0x00, S3C2410_CLKCON); /* turn off clocks over sleep */ |
| 593 | 591 | |
| 594 | 592 | s3c2410_cpu_suspend(regs_save); |
| 593 | + | |
| 594 | + /* restore the cpu state */ | |
| 595 | + | |
| 596 | + cpu_init(); | |
| 595 | 597 | |
| 596 | 598 | /* unset the return-from-sleep flag, to ensure reset */ |
| 597 | 599 |
arch/arm/mach-s3c2410/s3c2440-irq.c
| ... | ... | @@ -64,11 +64,11 @@ |
| 64 | 64 | if (subsrc != 0) { |
| 65 | 65 | if (subsrc & 1) { |
| 66 | 66 | mydesc = irq_desc + IRQ_S3C2440_WDT; |
| 67 | - mydesc->handle( IRQ_S3C2440_WDT, mydesc, regs); | |
| 67 | + desc_handle_irq(IRQ_S3C2440_WDT, mydesc, regs); | |
| 68 | 68 | } |
| 69 | 69 | if (subsrc & 2) { |
| 70 | 70 | mydesc = irq_desc + IRQ_S3C2440_AC97; |
| 71 | - mydesc->handle(IRQ_S3C2440_AC97, mydesc, regs); | |
| 71 | + desc_handle_irq(IRQ_S3C2440_AC97, mydesc, regs); | |
| 72 | 72 | } |
| 73 | 73 | } |
| 74 | 74 | } |
| 75 | 75 | |
| ... | ... | @@ -122,11 +122,11 @@ |
| 122 | 122 | if (subsrc != 0) { |
| 123 | 123 | if (subsrc & 1) { |
| 124 | 124 | mydesc = irq_desc + IRQ_S3C2440_CAM_C; |
| 125 | - mydesc->handle( IRQ_S3C2440_WDT, mydesc, regs); | |
| 125 | + desc_handle_irq(IRQ_S3C2440_CAM_C, mydesc, regs); | |
| 126 | 126 | } |
| 127 | 127 | if (subsrc & 2) { |
| 128 | 128 | mydesc = irq_desc + IRQ_S3C2440_CAM_P; |
| 129 | - mydesc->handle(IRQ_S3C2440_AC97, mydesc, regs); | |
| 129 | + desc_handle_irq(IRQ_S3C2440_CAM_P, mydesc, regs); | |
| 130 | 130 | } |
| 131 | 131 | } |
| 132 | 132 | } |
arch/arm/mach-sa1100/irq.c
| ... | ... | @@ -98,8 +98,8 @@ |
| 98 | 98 | .ack = sa1100_low_gpio_ack, |
| 99 | 99 | .mask = sa1100_low_gpio_mask, |
| 100 | 100 | .unmask = sa1100_low_gpio_unmask, |
| 101 | - .type = sa1100_gpio_type, | |
| 102 | - .wake = sa1100_low_gpio_wake, | |
| 101 | + .set_type = sa1100_gpio_type, | |
| 102 | + .set_wake = sa1100_low_gpio_wake, | |
| 103 | 103 | }; |
| 104 | 104 | |
| 105 | 105 | /* |
| ... | ... | @@ -126,7 +126,7 @@ |
| 126 | 126 | mask >>= 11; |
| 127 | 127 | do { |
| 128 | 128 | if (mask & 1) |
| 129 | - desc->handle(irq, desc, regs); | |
| 129 | + desc_handle_irq(irq, desc, regs); | |
| 130 | 130 | mask >>= 1; |
| 131 | 131 | irq++; |
| 132 | 132 | desc++; |
| ... | ... | @@ -181,8 +181,8 @@ |
| 181 | 181 | .ack = sa1100_high_gpio_ack, |
| 182 | 182 | .mask = sa1100_high_gpio_mask, |
| 183 | 183 | .unmask = sa1100_high_gpio_unmask, |
| 184 | - .type = sa1100_gpio_type, | |
| 185 | - .wake = sa1100_high_gpio_wake, | |
| 184 | + .set_type = sa1100_gpio_type, | |
| 185 | + .set_wake = sa1100_high_gpio_wake, | |
| 186 | 186 | }; |
| 187 | 187 | |
| 188 | 188 | /* |
arch/arm/mach-sa1100/neponset.c
| ... | ... | @@ -61,12 +61,12 @@ |
| 61 | 61 | |
| 62 | 62 | if (irr & IRR_ETHERNET) { |
| 63 | 63 | d = irq_desc + IRQ_NEPONSET_SMC9196; |
| 64 | - d->handle(IRQ_NEPONSET_SMC9196, d, regs); | |
| 64 | + desc_handle_irq(IRQ_NEPONSET_SMC9196, d, regs); | |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | if (irr & IRR_USAR) { |
| 68 | 68 | d = irq_desc + IRQ_NEPONSET_USAR; |
| 69 | - d->handle(IRQ_NEPONSET_USAR, d, regs); | |
| 69 | + desc_handle_irq(IRQ_NEPONSET_USAR, d, regs); | |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | desc->chip->unmask(irq); |
| ... | ... | @@ -74,7 +74,7 @@ |
| 74 | 74 | |
| 75 | 75 | if (irr & IRR_SA1111) { |
| 76 | 76 | d = irq_desc + IRQ_NEPONSET_SA1111; |
| 77 | - d->handle(IRQ_NEPONSET_SA1111, d, regs); | |
| 77 | + desc_handle_irq(IRQ_NEPONSET_SA1111, d, regs); | |
| 78 | 78 | } |
| 79 | 79 | } |
| 80 | 80 | } |
arch/arm/mach-versatile/core.c
arch/arm/mm/proc-arm6_7.S
| ... | ... | @@ -38,8 +38,8 @@ |
| 38 | 38 | mrc p15, 0, r1, c5, c0, 0 @ get FSR |
| 39 | 39 | mrc p15, 0, r0, c6, c0, 0 @ get FAR |
| 40 | 40 | ldr r8, [r0] @ read arm instruction |
| 41 | - tst r8, #1 << 20 @ L = 1 -> write? | |
| 42 | - orreq r1, r1, #1 << 8 @ yes. | |
| 41 | + tst r8, #1 << 20 @ L = 0 -> write? | |
| 42 | + orreq r1, r1, #1 << 11 @ yes. | |
| 43 | 43 | and r7, r8, #15 << 24 |
| 44 | 44 | add pc, pc, r7, lsr #22 @ Now branch to the relevant processing routine |
| 45 | 45 | nop |
| ... | ... | @@ -71,8 +71,8 @@ |
| 71 | 71 | mrc p15, 0, r1, c5, c0, 0 @ get FSR |
| 72 | 72 | mrc p15, 0, r0, c6, c0, 0 @ get FAR |
| 73 | 73 | ldr r8, [r2] @ read arm instruction |
| 74 | - tst r8, #1 << 20 @ L = 1 -> write? | |
| 75 | - orreq r1, r1, #1 << 8 @ yes. | |
| 74 | + tst r8, #1 << 20 @ L = 0 -> write? | |
| 75 | + orreq r1, r1, #1 << 11 @ yes. | |
| 76 | 76 | and r7, r8, #14 << 24 |
| 77 | 77 | teq r7, #8 << 24 @ was it ldm/stm |
| 78 | 78 | movne pc, lr |
arch/arm/plat-omap/gpio.c
drivers/pcmcia/pxa2xx_base.c
| ... | ... | @@ -246,7 +246,7 @@ |
| 246 | 246 | driver_unregister(&pxa2xx_pcmcia_driver); |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | -module_init(pxa2xx_pcmcia_init); | |
| 249 | +fs_initcall(pxa2xx_pcmcia_init); | |
| 250 | 250 | module_exit(pxa2xx_pcmcia_exit); |
| 251 | 251 | |
| 252 | 252 | MODULE_AUTHOR("Stefan Eletzhofer <stefan.eletzhofer@inquant.de> and Ian Molton <spyro@f2s.com>"); |
drivers/pcmcia/pxa2xx_mainstone.c
drivers/pcmcia/pxa2xx_sharpsl.c
drivers/pcmcia/sa1100_generic.c
drivers/pcmcia/sa1111_generic.c
drivers/pcmcia/sa11xx_base.c
include/asm-arm/mach/irq.h
| ... | ... | @@ -42,11 +42,11 @@ |
| 42 | 42 | /* |
| 43 | 43 | * Set the type of the IRQ. |
| 44 | 44 | */ |
| 45 | - int (*type)(unsigned int, unsigned int); | |
| 45 | + int (*set_type)(unsigned int, unsigned int); | |
| 46 | 46 | /* |
| 47 | 47 | * Set wakeup-enable on the selected IRQ |
| 48 | 48 | */ |
| 49 | - int (*wake)(unsigned int, unsigned int); | |
| 49 | + int (*set_wake)(unsigned int, unsigned int); | |
| 50 | 50 | |
| 51 | 51 | #ifdef CONFIG_SMP |
| 52 | 52 | /* |
| ... | ... | @@ -90,6 +90,14 @@ |
| 90 | 90 | }; |
| 91 | 91 | |
| 92 | 92 | extern struct irqdesc irq_desc[]; |
| 93 | + | |
| 94 | +/* | |
| 95 | + * Helpful inline function for calling irq descriptor handlers. | |
| 96 | + */ | |
| 97 | +static inline void desc_handle_irq(unsigned int irq, struct irqdesc *desc, struct pt_regs *regs) | |
| 98 | +{ | |
| 99 | + desc->handle(irq, desc, regs); | |
| 100 | +} | |
| 93 | 101 | |
| 94 | 102 | /* |
| 95 | 103 | * This is internal. Do not use it. |