diff options
Diffstat (limited to 'arch/arm/common/locomo.c')
| -rw-r--r-- | arch/arm/common/locomo.c | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/arch/arm/common/locomo.c b/arch/arm/common/locomo.c index 80a72c75214f..cfe6f4650bc9 100644 --- a/arch/arm/common/locomo.c +++ b/arch/arm/common/locomo.c | |||
| @@ -163,11 +163,11 @@ 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 irq_desc *desc) |
| 167 | { | 167 | { |
| 168 | int req, i; | 168 | int req, i; |
| 169 | struct irqdesc *d; | 169 | struct irq_desc *d; |
| 170 | void __iomem *mapbase = get_irq_chipdata(irq); | 170 | void __iomem *mapbase = get_irq_chip_data(irq); |
| 171 | 171 | ||
| 172 | /* Acknowledge the parent IRQ */ | 172 | /* Acknowledge the parent IRQ */ |
| 173 | desc->chip->ack(irq); | 173 | desc->chip->ack(irq); |
| @@ -194,7 +194,7 @@ static void locomo_ack_irq(unsigned int irq) | |||
| 194 | 194 | ||
| 195 | static void locomo_mask_irq(unsigned int irq) | 195 | static void locomo_mask_irq(unsigned int irq) |
| 196 | { | 196 | { |
| 197 | void __iomem *mapbase = get_irq_chipdata(irq); | 197 | void __iomem *mapbase = get_irq_chip_data(irq); |
| 198 | unsigned int r; | 198 | unsigned int r; |
| 199 | r = locomo_readl(mapbase + LOCOMO_ICR); | 199 | r = locomo_readl(mapbase + LOCOMO_ICR); |
| 200 | r &= ~(0x0010 << (irq - LOCOMO_IRQ_START)); | 200 | r &= ~(0x0010 << (irq - LOCOMO_IRQ_START)); |
| @@ -203,7 +203,7 @@ static void locomo_mask_irq(unsigned int irq) | |||
| 203 | 203 | ||
| 204 | static void locomo_unmask_irq(unsigned int irq) | 204 | static void locomo_unmask_irq(unsigned int irq) |
| 205 | { | 205 | { |
| 206 | void __iomem *mapbase = get_irq_chipdata(irq); | 206 | void __iomem *mapbase = get_irq_chip_data(irq); |
| 207 | unsigned int r; | 207 | unsigned int r; |
| 208 | r = locomo_readl(mapbase + LOCOMO_ICR); | 208 | r = locomo_readl(mapbase + LOCOMO_ICR); |
| 209 | r |= (0x0010 << (irq - LOCOMO_IRQ_START)); | 209 | r |= (0x0010 << (irq - LOCOMO_IRQ_START)); |
| @@ -217,10 +217,10 @@ static struct irq_chip locomo_chip = { | |||
| 217 | .unmask = locomo_unmask_irq, | 217 | .unmask = locomo_unmask_irq, |
| 218 | }; | 218 | }; |
| 219 | 219 | ||
| 220 | static void locomo_key_handler(unsigned int irq, struct irqdesc *desc) | 220 | static void locomo_key_handler(unsigned int irq, struct irq_desc *desc) |
| 221 | { | 221 | { |
| 222 | struct irqdesc *d; | 222 | struct irq_desc *d; |
| 223 | void __iomem *mapbase = get_irq_chipdata(irq); | 223 | void __iomem *mapbase = get_irq_chip_data(irq); |
| 224 | 224 | ||
| 225 | if (locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC) & 0x0001) { | 225 | if (locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC) & 0x0001) { |
| 226 | d = irq_desc + LOCOMO_IRQ_KEY_START; | 226 | d = irq_desc + LOCOMO_IRQ_KEY_START; |
| @@ -230,7 +230,7 @@ static void locomo_key_handler(unsigned int irq, struct irqdesc *desc) | |||
| 230 | 230 | ||
| 231 | static void locomo_key_ack_irq(unsigned int irq) | 231 | static void locomo_key_ack_irq(unsigned int irq) |
| 232 | { | 232 | { |
| 233 | void __iomem *mapbase = get_irq_chipdata(irq); | 233 | void __iomem *mapbase = get_irq_chip_data(irq); |
| 234 | unsigned int r; | 234 | unsigned int r; |
| 235 | r = locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC); | 235 | r = locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC); |
| 236 | r &= ~(0x0100 << (irq - LOCOMO_IRQ_KEY_START)); | 236 | r &= ~(0x0100 << (irq - LOCOMO_IRQ_KEY_START)); |
| @@ -239,7 +239,7 @@ static void locomo_key_ack_irq(unsigned int irq) | |||
| 239 | 239 | ||
| 240 | static void locomo_key_mask_irq(unsigned int irq) | 240 | static void locomo_key_mask_irq(unsigned int irq) |
| 241 | { | 241 | { |
| 242 | void __iomem *mapbase = get_irq_chipdata(irq); | 242 | void __iomem *mapbase = get_irq_chip_data(irq); |
| 243 | unsigned int r; | 243 | unsigned int r; |
| 244 | r = locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC); | 244 | r = locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC); |
| 245 | r &= ~(0x0010 << (irq - LOCOMO_IRQ_KEY_START)); | 245 | r &= ~(0x0010 << (irq - LOCOMO_IRQ_KEY_START)); |
| @@ -248,7 +248,7 @@ static void locomo_key_mask_irq(unsigned int irq) | |||
| 248 | 248 | ||
| 249 | static void locomo_key_unmask_irq(unsigned int irq) | 249 | static void locomo_key_unmask_irq(unsigned int irq) |
| 250 | { | 250 | { |
| 251 | void __iomem *mapbase = get_irq_chipdata(irq); | 251 | void __iomem *mapbase = get_irq_chip_data(irq); |
| 252 | unsigned int r; | 252 | unsigned int r; |
| 253 | r = locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC); | 253 | r = locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC); |
| 254 | r |= (0x0010 << (irq - LOCOMO_IRQ_KEY_START)); | 254 | r |= (0x0010 << (irq - LOCOMO_IRQ_KEY_START)); |
| @@ -262,11 +262,11 @@ static struct irq_chip locomo_key_chip = { | |||
| 262 | .unmask = locomo_key_unmask_irq, | 262 | .unmask = locomo_key_unmask_irq, |
| 263 | }; | 263 | }; |
| 264 | 264 | ||
| 265 | static void locomo_gpio_handler(unsigned int irq, struct irqdesc *desc) | 265 | static void locomo_gpio_handler(unsigned int irq, struct irq_desc *desc) |
| 266 | { | 266 | { |
| 267 | int req, i; | 267 | int req, i; |
| 268 | struct irqdesc *d; | 268 | struct irq_desc *d; |
| 269 | void __iomem *mapbase = get_irq_chipdata(irq); | 269 | void __iomem *mapbase = get_irq_chip_data(irq); |
| 270 | 270 | ||
| 271 | req = locomo_readl(mapbase + LOCOMO_GIR) & | 271 | req = locomo_readl(mapbase + LOCOMO_GIR) & |
| 272 | locomo_readl(mapbase + LOCOMO_GPD) & | 272 | locomo_readl(mapbase + LOCOMO_GPD) & |
| @@ -285,7 +285,7 @@ static void locomo_gpio_handler(unsigned int irq, struct irqdesc *desc) | |||
| 285 | 285 | ||
| 286 | static void locomo_gpio_ack_irq(unsigned int irq) | 286 | static void locomo_gpio_ack_irq(unsigned int irq) |
| 287 | { | 287 | { |
| 288 | void __iomem *mapbase = get_irq_chipdata(irq); | 288 | void __iomem *mapbase = get_irq_chip_data(irq); |
| 289 | unsigned int r; | 289 | unsigned int r; |
| 290 | r = locomo_readl(mapbase + LOCOMO_GWE); | 290 | r = locomo_readl(mapbase + LOCOMO_GWE); |
| 291 | r |= (0x0001 << (irq - LOCOMO_IRQ_GPIO_START)); | 291 | r |= (0x0001 << (irq - LOCOMO_IRQ_GPIO_START)); |
| @@ -302,7 +302,7 @@ static void locomo_gpio_ack_irq(unsigned int irq) | |||
| 302 | 302 | ||
| 303 | static void locomo_gpio_mask_irq(unsigned int irq) | 303 | static void locomo_gpio_mask_irq(unsigned int irq) |
| 304 | { | 304 | { |
| 305 | void __iomem *mapbase = get_irq_chipdata(irq); | 305 | void __iomem *mapbase = get_irq_chip_data(irq); |
| 306 | unsigned int r; | 306 | unsigned int r; |
| 307 | r = locomo_readl(mapbase + LOCOMO_GIE); | 307 | r = locomo_readl(mapbase + LOCOMO_GIE); |
| 308 | r &= ~(0x0001 << (irq - LOCOMO_IRQ_GPIO_START)); | 308 | r &= ~(0x0001 << (irq - LOCOMO_IRQ_GPIO_START)); |
| @@ -311,7 +311,7 @@ static void locomo_gpio_mask_irq(unsigned int irq) | |||
| 311 | 311 | ||
| 312 | static void locomo_gpio_unmask_irq(unsigned int irq) | 312 | static void locomo_gpio_unmask_irq(unsigned int irq) |
| 313 | { | 313 | { |
| 314 | void __iomem *mapbase = get_irq_chipdata(irq); | 314 | void __iomem *mapbase = get_irq_chip_data(irq); |
| 315 | unsigned int r; | 315 | unsigned int r; |
| 316 | r = locomo_readl(mapbase + LOCOMO_GIE); | 316 | r = locomo_readl(mapbase + LOCOMO_GIE); |
| 317 | r |= (0x0001 << (irq - LOCOMO_IRQ_GPIO_START)); | 317 | r |= (0x0001 << (irq - LOCOMO_IRQ_GPIO_START)); |
| @@ -325,10 +325,10 @@ static struct irq_chip locomo_gpio_chip = { | |||
| 325 | .unmask = locomo_gpio_unmask_irq, | 325 | .unmask = locomo_gpio_unmask_irq, |
| 326 | }; | 326 | }; |
| 327 | 327 | ||
| 328 | static void locomo_lt_handler(unsigned int irq, struct irqdesc *desc) | 328 | static void locomo_lt_handler(unsigned int irq, struct irq_desc *desc) |
| 329 | { | 329 | { |
| 330 | struct irqdesc *d; | 330 | struct irq_desc *d; |
| 331 | void __iomem *mapbase = get_irq_chipdata(irq); | 331 | void __iomem *mapbase = get_irq_chip_data(irq); |
| 332 | 332 | ||
| 333 | if (locomo_readl(mapbase + LOCOMO_LTINT) & 0x0001) { | 333 | if (locomo_readl(mapbase + LOCOMO_LTINT) & 0x0001) { |
| 334 | d = irq_desc + LOCOMO_IRQ_LT_START; | 334 | d = irq_desc + LOCOMO_IRQ_LT_START; |
| @@ -338,7 +338,7 @@ static void locomo_lt_handler(unsigned int irq, struct irqdesc *desc) | |||
| 338 | 338 | ||
| 339 | static void locomo_lt_ack_irq(unsigned int irq) | 339 | static void locomo_lt_ack_irq(unsigned int irq) |
| 340 | { | 340 | { |
| 341 | void __iomem *mapbase = get_irq_chipdata(irq); | 341 | void __iomem *mapbase = get_irq_chip_data(irq); |
| 342 | unsigned int r; | 342 | unsigned int r; |
| 343 | r = locomo_readl(mapbase + LOCOMO_LTINT); | 343 | r = locomo_readl(mapbase + LOCOMO_LTINT); |
| 344 | r &= ~(0x0100 << (irq - LOCOMO_IRQ_LT_START)); | 344 | r &= ~(0x0100 << (irq - LOCOMO_IRQ_LT_START)); |
| @@ -347,7 +347,7 @@ static void locomo_lt_ack_irq(unsigned int irq) | |||
| 347 | 347 | ||
| 348 | static void locomo_lt_mask_irq(unsigned int irq) | 348 | static void locomo_lt_mask_irq(unsigned int irq) |
| 349 | { | 349 | { |
| 350 | void __iomem *mapbase = get_irq_chipdata(irq); | 350 | void __iomem *mapbase = get_irq_chip_data(irq); |
| 351 | unsigned int r; | 351 | unsigned int r; |
| 352 | r = locomo_readl(mapbase + LOCOMO_LTINT); | 352 | r = locomo_readl(mapbase + LOCOMO_LTINT); |
| 353 | r &= ~(0x0010 << (irq - LOCOMO_IRQ_LT_START)); | 353 | r &= ~(0x0010 << (irq - LOCOMO_IRQ_LT_START)); |
| @@ -356,7 +356,7 @@ static void locomo_lt_mask_irq(unsigned int irq) | |||
| 356 | 356 | ||
| 357 | static void locomo_lt_unmask_irq(unsigned int irq) | 357 | static void locomo_lt_unmask_irq(unsigned int irq) |
| 358 | { | 358 | { |
| 359 | void __iomem *mapbase = get_irq_chipdata(irq); | 359 | void __iomem *mapbase = get_irq_chip_data(irq); |
| 360 | unsigned int r; | 360 | unsigned int r; |
| 361 | r = locomo_readl(mapbase + LOCOMO_LTINT); | 361 | r = locomo_readl(mapbase + LOCOMO_LTINT); |
| 362 | r |= (0x0010 << (irq - LOCOMO_IRQ_LT_START)); | 362 | r |= (0x0010 << (irq - LOCOMO_IRQ_LT_START)); |
| @@ -370,11 +370,11 @@ static struct irq_chip locomo_lt_chip = { | |||
| 370 | .unmask = locomo_lt_unmask_irq, | 370 | .unmask = locomo_lt_unmask_irq, |
| 371 | }; | 371 | }; |
| 372 | 372 | ||
| 373 | static void locomo_spi_handler(unsigned int irq, struct irqdesc *desc) | 373 | static void locomo_spi_handler(unsigned int irq, struct irq_desc *desc) |
| 374 | { | 374 | { |
| 375 | int req, i; | 375 | int req, i; |
| 376 | struct irqdesc *d; | 376 | struct irq_desc *d; |
| 377 | void __iomem *mapbase = get_irq_chipdata(irq); | 377 | void __iomem *mapbase = get_irq_chip_data(irq); |
| 378 | 378 | ||
| 379 | req = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIIR) & 0x000F; | 379 | req = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIIR) & 0x000F; |
| 380 | if (req) { | 380 | if (req) { |
| @@ -391,7 +391,7 @@ static void locomo_spi_handler(unsigned int irq, struct irqdesc *desc) | |||
| 391 | 391 | ||
| 392 | static void locomo_spi_ack_irq(unsigned int irq) | 392 | static void locomo_spi_ack_irq(unsigned int irq) |
| 393 | { | 393 | { |
| 394 | void __iomem *mapbase = get_irq_chipdata(irq); | 394 | void __iomem *mapbase = get_irq_chip_data(irq); |
| 395 | unsigned int r; | 395 | unsigned int r; |
| 396 | r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIWE); | 396 | r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIWE); |
| 397 | r |= (0x0001 << (irq - LOCOMO_IRQ_SPI_START)); | 397 | r |= (0x0001 << (irq - LOCOMO_IRQ_SPI_START)); |
| @@ -408,7 +408,7 @@ static void locomo_spi_ack_irq(unsigned int irq) | |||
| 408 | 408 | ||
| 409 | static void locomo_spi_mask_irq(unsigned int irq) | 409 | static void locomo_spi_mask_irq(unsigned int irq) |
| 410 | { | 410 | { |
| 411 | void __iomem *mapbase = get_irq_chipdata(irq); | 411 | void __iomem *mapbase = get_irq_chip_data(irq); |
| 412 | unsigned int r; | 412 | unsigned int r; |
| 413 | r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIIE); | 413 | r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIIE); |
| 414 | r &= ~(0x0001 << (irq - LOCOMO_IRQ_SPI_START)); | 414 | r &= ~(0x0001 << (irq - LOCOMO_IRQ_SPI_START)); |
| @@ -417,7 +417,7 @@ static void locomo_spi_mask_irq(unsigned int irq) | |||
| 417 | 417 | ||
| 418 | static void locomo_spi_unmask_irq(unsigned int irq) | 418 | static void locomo_spi_unmask_irq(unsigned int irq) |
| 419 | { | 419 | { |
| 420 | void __iomem *mapbase = get_irq_chipdata(irq); | 420 | void __iomem *mapbase = get_irq_chip_data(irq); |
| 421 | unsigned int r; | 421 | unsigned int r; |
| 422 | r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIIE); | 422 | r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIIE); |
| 423 | r |= (0x0001 << (irq - LOCOMO_IRQ_SPI_START)); | 423 | r |= (0x0001 << (irq - LOCOMO_IRQ_SPI_START)); |
| @@ -440,55 +440,55 @@ static void locomo_setup_irq(struct locomo *lchip) | |||
| 440 | * Install handler for IRQ_LOCOMO_HW. | 440 | * Install handler for IRQ_LOCOMO_HW. |
| 441 | */ | 441 | */ |
| 442 | set_irq_type(lchip->irq, IRQT_FALLING); | 442 | set_irq_type(lchip->irq, IRQT_FALLING); |
| 443 | set_irq_chipdata(lchip->irq, irqbase); | 443 | set_irq_chip_data(lchip->irq, irqbase); |
| 444 | set_irq_chained_handler(lchip->irq, locomo_handler); | 444 | set_irq_chained_handler(lchip->irq, locomo_handler); |
| 445 | 445 | ||
| 446 | /* Install handlers for IRQ_LOCOMO_*_BASE */ | 446 | /* Install handlers for IRQ_LOCOMO_*_BASE */ |
| 447 | set_irq_chip(IRQ_LOCOMO_KEY_BASE, &locomo_chip); | 447 | set_irq_chip(IRQ_LOCOMO_KEY_BASE, &locomo_chip); |
| 448 | set_irq_chipdata(IRQ_LOCOMO_KEY_BASE, irqbase); | 448 | set_irq_chip_data(IRQ_LOCOMO_KEY_BASE, irqbase); |
| 449 | set_irq_chained_handler(IRQ_LOCOMO_KEY_BASE, locomo_key_handler); | 449 | set_irq_chained_handler(IRQ_LOCOMO_KEY_BASE, locomo_key_handler); |
| 450 | set_irq_flags(IRQ_LOCOMO_KEY_BASE, IRQF_VALID | IRQF_PROBE); | 450 | set_irq_flags(IRQ_LOCOMO_KEY_BASE, IRQF_VALID | IRQF_PROBE); |
| 451 | 451 | ||
| 452 | set_irq_chip(IRQ_LOCOMO_GPIO_BASE, &locomo_chip); | 452 | set_irq_chip(IRQ_LOCOMO_GPIO_BASE, &locomo_chip); |
| 453 | set_irq_chipdata(IRQ_LOCOMO_GPIO_BASE, irqbase); | 453 | set_irq_chip_data(IRQ_LOCOMO_GPIO_BASE, irqbase); |
| 454 | set_irq_chained_handler(IRQ_LOCOMO_GPIO_BASE, locomo_gpio_handler); | 454 | set_irq_chained_handler(IRQ_LOCOMO_GPIO_BASE, locomo_gpio_handler); |
| 455 | set_irq_flags(IRQ_LOCOMO_GPIO_BASE, IRQF_VALID | IRQF_PROBE); | 455 | set_irq_flags(IRQ_LOCOMO_GPIO_BASE, IRQF_VALID | IRQF_PROBE); |
| 456 | 456 | ||
| 457 | set_irq_chip(IRQ_LOCOMO_LT_BASE, &locomo_chip); | 457 | set_irq_chip(IRQ_LOCOMO_LT_BASE, &locomo_chip); |
| 458 | set_irq_chipdata(IRQ_LOCOMO_LT_BASE, irqbase); | 458 | set_irq_chip_data(IRQ_LOCOMO_LT_BASE, irqbase); |
| 459 | set_irq_chained_handler(IRQ_LOCOMO_LT_BASE, locomo_lt_handler); | 459 | set_irq_chained_handler(IRQ_LOCOMO_LT_BASE, locomo_lt_handler); |
| 460 | set_irq_flags(IRQ_LOCOMO_LT_BASE, IRQF_VALID | IRQF_PROBE); | 460 | set_irq_flags(IRQ_LOCOMO_LT_BASE, IRQF_VALID | IRQF_PROBE); |
| 461 | 461 | ||
| 462 | set_irq_chip(IRQ_LOCOMO_SPI_BASE, &locomo_chip); | 462 | set_irq_chip(IRQ_LOCOMO_SPI_BASE, &locomo_chip); |
| 463 | set_irq_chipdata(IRQ_LOCOMO_SPI_BASE, irqbase); | 463 | set_irq_chip_data(IRQ_LOCOMO_SPI_BASE, irqbase); |
| 464 | set_irq_chained_handler(IRQ_LOCOMO_SPI_BASE, locomo_spi_handler); | 464 | set_irq_chained_handler(IRQ_LOCOMO_SPI_BASE, locomo_spi_handler); |
| 465 | set_irq_flags(IRQ_LOCOMO_SPI_BASE, IRQF_VALID | IRQF_PROBE); | 465 | set_irq_flags(IRQ_LOCOMO_SPI_BASE, IRQF_VALID | IRQF_PROBE); |
| 466 | 466 | ||
| 467 | /* install handlers for IRQ_LOCOMO_KEY_BASE generated interrupts */ | 467 | /* install handlers for IRQ_LOCOMO_KEY_BASE generated interrupts */ |
| 468 | set_irq_chip(LOCOMO_IRQ_KEY_START, &locomo_key_chip); | 468 | set_irq_chip(LOCOMO_IRQ_KEY_START, &locomo_key_chip); |
| 469 | set_irq_chipdata(LOCOMO_IRQ_KEY_START, irqbase); | 469 | set_irq_chip_data(LOCOMO_IRQ_KEY_START, irqbase); |
| 470 | set_irq_handler(LOCOMO_IRQ_KEY_START, do_edge_IRQ); | 470 | set_irq_handler(LOCOMO_IRQ_KEY_START, handle_edge_irq); |
| 471 | set_irq_flags(LOCOMO_IRQ_KEY_START, IRQF_VALID | IRQF_PROBE); | 471 | set_irq_flags(LOCOMO_IRQ_KEY_START, IRQF_VALID | IRQF_PROBE); |
| 472 | 472 | ||
| 473 | /* install handlers for IRQ_LOCOMO_GPIO_BASE generated interrupts */ | 473 | /* install handlers for IRQ_LOCOMO_GPIO_BASE generated interrupts */ |
| 474 | for (irq = LOCOMO_IRQ_GPIO_START; irq < LOCOMO_IRQ_GPIO_START + 16; irq++) { | 474 | for (irq = LOCOMO_IRQ_GPIO_START; irq < LOCOMO_IRQ_GPIO_START + 16; irq++) { |
| 475 | set_irq_chip(irq, &locomo_gpio_chip); | 475 | set_irq_chip(irq, &locomo_gpio_chip); |
| 476 | set_irq_chipdata(irq, irqbase); | 476 | set_irq_chip_data(irq, irqbase); |
| 477 | set_irq_handler(irq, do_edge_IRQ); | 477 | set_irq_handler(irq, handle_edge_irq); |
| 478 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 478 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
| 479 | } | 479 | } |
| 480 | 480 | ||
| 481 | /* install handlers for IRQ_LOCOMO_LT_BASE generated interrupts */ | 481 | /* install handlers for IRQ_LOCOMO_LT_BASE generated interrupts */ |
| 482 | set_irq_chip(LOCOMO_IRQ_LT_START, &locomo_lt_chip); | 482 | set_irq_chip(LOCOMO_IRQ_LT_START, &locomo_lt_chip); |
| 483 | set_irq_chipdata(LOCOMO_IRQ_LT_START, irqbase); | 483 | set_irq_chip_data(LOCOMO_IRQ_LT_START, irqbase); |
| 484 | set_irq_handler(LOCOMO_IRQ_LT_START, do_edge_IRQ); | 484 | set_irq_handler(LOCOMO_IRQ_LT_START, handle_edge_irq); |
| 485 | set_irq_flags(LOCOMO_IRQ_LT_START, IRQF_VALID | IRQF_PROBE); | 485 | set_irq_flags(LOCOMO_IRQ_LT_START, IRQF_VALID | IRQF_PROBE); |
| 486 | 486 | ||
| 487 | /* install handlers for IRQ_LOCOMO_SPI_BASE generated interrupts */ | 487 | /* install handlers for IRQ_LOCOMO_SPI_BASE generated interrupts */ |
| 488 | for (irq = LOCOMO_IRQ_SPI_START; irq < LOCOMO_IRQ_SPI_START + 3; irq++) { | 488 | for (irq = LOCOMO_IRQ_SPI_START; irq < LOCOMO_IRQ_SPI_START + 3; irq++) { |
| 489 | set_irq_chip(irq, &locomo_spi_chip); | 489 | set_irq_chip(irq, &locomo_spi_chip); |
| 490 | set_irq_chipdata(irq, irqbase); | 490 | set_irq_chip_data(irq, irqbase); |
| 491 | set_irq_handler(irq, do_edge_IRQ); | 491 | set_irq_handler(irq, handle_edge_irq); |
| 492 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 492 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
| 493 | } | 493 | } |
| 494 | } | 494 | } |
