diff options
Diffstat (limited to 'arch/arm/common/locomo.c')
-rw-r--r-- | arch/arm/common/locomo.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/common/locomo.c b/arch/arm/common/locomo.c index d973c986f72..85579654d3b 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 | ||
@@ -543,7 +543,6 @@ locomo_init_one_child(struct locomo *lchip, struct locomo_dev_info *info) | |||
543 | goto out; | 543 | goto out; |
544 | } | 544 | } |
545 | 545 | ||
546 | strncpy(dev->dev.bus_id, info->name, sizeof(dev->dev.bus_id)); | ||
547 | /* | 546 | /* |
548 | * If the parent device has a DMA mask associated with it, | 547 | * If the parent device has a DMA mask associated with it, |
549 | * propagate it down to the children. | 548 | * propagate it down to the children. |
@@ -553,6 +552,7 @@ locomo_init_one_child(struct locomo *lchip, struct locomo_dev_info *info) | |||
553 | dev->dev.dma_mask = &dev->dma_mask; | 552 | dev->dev.dma_mask = &dev->dma_mask; |
554 | } | 553 | } |
555 | 554 | ||
555 | dev_set_name(&dev->dev, "%s", info->name); | ||
556 | dev->devid = info->devid; | 556 | dev->devid = info->devid; |
557 | dev->dev.parent = lchip->dev; | 557 | dev->dev.parent = lchip->dev; |
558 | dev->dev.bus = &locomo_bus_type; | 558 | dev->dev.bus = &locomo_bus_type; |