diff options
Diffstat (limited to 'arch/arm/common/locomo.c')
-rw-r--r-- | arch/arm/common/locomo.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/common/locomo.c b/arch/arm/common/locomo.c index c3c3a3339049..85579654d3b7 100644 --- a/arch/arm/common/locomo.c +++ b/arch/arm/common/locomo.c | |||
@@ -331,17 +331,17 @@ static int locomo_gpio_type(unsigned int irq, unsigned int type) | |||
331 | 331 | ||
332 | mask = 1 << (irq - LOCOMO_IRQ_GPIO_START); | 332 | mask = 1 << (irq - LOCOMO_IRQ_GPIO_START); |
333 | 333 | ||
334 | if (type == IRQT_PROBE) { | 334 | if (type == IRQ_TYPE_PROBE) { |
335 | if ((GPIO_IRQ_rising_edge | GPIO_IRQ_falling_edge) & mask) | 335 | if ((GPIO_IRQ_rising_edge | GPIO_IRQ_falling_edge) & mask) |
336 | return 0; | 336 | return 0; |
337 | type = __IRQT_RISEDGE | __IRQT_FALEDGE; | 337 | type = IRQ_TYPE_EDGE_RISING | IRQ_TYPE_EDGE_FALLING; |
338 | } | 338 | } |
339 | 339 | ||
340 | if (type & __IRQT_RISEDGE) | 340 | if (type & IRQ_TYPE_EDGE_RISING) |
341 | GPIO_IRQ_rising_edge |= mask; | 341 | GPIO_IRQ_rising_edge |= mask; |
342 | else | 342 | else |
343 | GPIO_IRQ_rising_edge &= ~mask; | 343 | GPIO_IRQ_rising_edge &= ~mask; |
344 | if (type & __IRQT_FALEDGE) | 344 | if (type & IRQ_TYPE_EDGE_FALLING) |
345 | GPIO_IRQ_falling_edge |= mask; | 345 | GPIO_IRQ_falling_edge |= mask; |
346 | else | 346 | else |
347 | GPIO_IRQ_falling_edge &= ~mask; | 347 | GPIO_IRQ_falling_edge &= ~mask; |
@@ -473,7 +473,7 @@ static void locomo_setup_irq(struct locomo *lchip) | |||
473 | /* | 473 | /* |
474 | * Install handler for IRQ_LOCOMO_HW. | 474 | * Install handler for IRQ_LOCOMO_HW. |
475 | */ | 475 | */ |
476 | set_irq_type(lchip->irq, IRQT_FALLING); | 476 | set_irq_type(lchip->irq, IRQ_TYPE_EDGE_FALLING); |
477 | set_irq_chip_data(lchip->irq, irqbase); | 477 | set_irq_chip_data(lchip->irq, irqbase); |
478 | set_irq_chained_handler(lchip->irq, locomo_handler); | 478 | set_irq_chained_handler(lchip->irq, locomo_handler); |
479 | 479 | ||