|
@@ -1098,7 +1098,6 @@ static int omap_gpio_chip_init(struct gpio_bank *bank, struct irq_chip *irqc)
|
|
} else {
|
|
} else {
|
|
bank->chip.label = "gpio";
|
|
bank->chip.label = "gpio";
|
|
bank->chip.base = gpio;
|
|
bank->chip.base = gpio;
|
|
- gpio += bank->width;
|
|
|
|
}
|
|
}
|
|
bank->chip.ngpio = bank->width;
|
|
bank->chip.ngpio = bank->width;
|
|
|
|
|
|
@@ -1108,6 +1107,9 @@ static int omap_gpio_chip_init(struct gpio_bank *bank, struct irq_chip *irqc)
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (!bank->is_mpuio)
|
|
|
|
+ gpio += bank->width;
|
|
|
|
+
|
|
#ifdef CONFIG_ARCH_OMAP1
|
|
#ifdef CONFIG_ARCH_OMAP1
|
|
/*
|
|
/*
|
|
* REVISIT: Once we have OMAP1 supporting SPARSE_IRQ, we can drop
|
|
* REVISIT: Once we have OMAP1 supporting SPARSE_IRQ, we can drop
|