summaryrefslogtreecommitdiff
path: root/chip/mec1322/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/mec1322/gpio.c')
-rw-r--r--chip/mec1322/gpio.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/chip/mec1322/gpio.c b/chip/mec1322/gpio.c
index 783fa52bf4..06fca36f7e 100644
--- a/chip/mec1322/gpio.c
+++ b/chip/mec1322/gpio.c
@@ -218,12 +218,10 @@ static void gpio_interrupt(int girq, int port_offset)
MEC1322_INT_SOURCE(girq) |= sts;
- for (i = 0; i < GPIO_COUNT && sts; ++i, ++g) {
- if (!g->irq_handler)
- continue;
+ for (i = 0; i < GPIO_IH_COUNT && sts; ++i, ++g) {
bit = (g->port - port_offset) * 8 + __builtin_ffs(g->mask) - 1;
if (sts & (1 << bit))
- g->irq_handler(i);
+ gpio_irq_handlers[i](i);
sts &= ~(1 << bit);
}
}