diff options
Diffstat (limited to 'arch/arm/plat-omap/gpio.c')
-rw-r--r-- | arch/arm/plat-omap/gpio.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index 1f98e0b94847..ccf2660f4151 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c | |||
@@ -718,7 +718,7 @@ static int _set_gpio_triggering(struct gpio_bank *bank, int gpio, int trigger) | |||
718 | case METHOD_GPIO_24XX: | 718 | case METHOD_GPIO_24XX: |
719 | case METHOD_GPIO_44XX: | 719 | case METHOD_GPIO_44XX: |
720 | set_24xx_gpio_triggering(bank, gpio, trigger); | 720 | set_24xx_gpio_triggering(bank, gpio, trigger); |
721 | break; | 721 | return 0; |
722 | #endif | 722 | #endif |
723 | default: | 723 | default: |
724 | goto bad; | 724 | goto bad; |
@@ -756,8 +756,10 @@ static int gpio_irq_type(unsigned irq, unsigned type) | |||
756 | spin_lock_irqsave(&bank->lock, flags); | 756 | spin_lock_irqsave(&bank->lock, flags); |
757 | retval = _set_gpio_triggering(bank, get_gpio_index(gpio), type); | 757 | retval = _set_gpio_triggering(bank, get_gpio_index(gpio), type); |
758 | if (retval == 0) { | 758 | if (retval == 0) { |
759 | irq_desc[irq].status &= ~IRQ_TYPE_SENSE_MASK; | 759 | struct irq_desc *d = irq_to_desc(irq); |
760 | irq_desc[irq].status |= type; | 760 | |
761 | d->status &= ~IRQ_TYPE_SENSE_MASK; | ||
762 | d->status |= type; | ||
761 | } | 763 | } |
762 | spin_unlock_irqrestore(&bank->lock, flags); | 764 | spin_unlock_irqrestore(&bank->lock, flags); |
763 | 765 | ||
@@ -1671,7 +1673,9 @@ static void __init omap_gpio_chip_init(struct gpio_bank *bank) | |||
1671 | 1673 | ||
1672 | for (j = bank->virtual_irq_start; | 1674 | for (j = bank->virtual_irq_start; |
1673 | j < bank->virtual_irq_start + bank_width; j++) { | 1675 | j < bank->virtual_irq_start + bank_width; j++) { |
1674 | lockdep_set_class(&irq_desc[j].lock, &gpio_lock_class); | 1676 | struct irq_desc *d = irq_to_desc(j); |
1677 | |||
1678 | lockdep_set_class(&d->lock, &gpio_lock_class); | ||
1675 | set_irq_chip_data(j, bank); | 1679 | set_irq_chip_data(j, bank); |
1676 | if (bank_is_mpuio(bank)) | 1680 | if (bank_is_mpuio(bank)) |
1677 | set_irq_chip(j, &mpuio_irq_chip); | 1681 | set_irq_chip(j, &mpuio_irq_chip); |