cns3xxx: fix GPIO controller interrupt enable
[openwrt/staging/jow.git] / target / linux / cns3xxx / files / arch / arm / mach-cns3xxx / gpio.c
index 19de24c349094acf143c67037c5b7b93e9046037..bdf930a79ebb35abb765410d5e0411d3b571e3ad 100644 (file)
@@ -273,10 +273,10 @@ void __init cns3xxx_gpio_init(int gpio_base, int ngpio,
        ct = gc->chip_types;
        ct->type = IRQ_TYPE_EDGE_FALLING;
        ct->regs.ack = GPIO_INTERRUPT_CLEAR;
-       ct->regs.enable = GPIO_INTERRUPT_ENABLE;
        ct->chip.irq_ack = irq_gc_ack_set_bit;
-       ct->chip.irq_enable = irq_gc_unmask_enable_reg;
-       ct->chip.irq_disable = irq_gc_mask_disable_reg;
+       ct->regs.mask = GPIO_INTERRUPT_ENABLE;
+       ct->chip.irq_enable = irq_gc_mask_set_bit;
+       ct->chip.irq_disable = irq_gc_mask_clr_bit;
        ct->chip.irq_set_type = cns3xxx_gpio_irq_set_type;
        ct->handler = handle_edge_irq;