commit | 04aafd713bae8a75933c7821dc012b0ec9046bca | [log] [tgz] |
---|---|---|
author | Shawn Guo <shawn.guo@linaro.org> | Thu Dec 01 14:49:29 2011 +0800 |
committer | Shawn Guo <shawn.guo@linaro.org> | Thu Dec 01 16:15:15 2011 +0800 |
tree | 5d0a8b41980b7e229e12510c9d24e27573cf6a8a | |
parent | 2a3267a489f1dc4284b64a4b88c62011946dc7ff [diff] |
arm/imx: fix irq_base for gpio When gpio core dynamically allocate gpio number for a port, it starts from the end of the total range, 0 ~ ARCH_NR_GPIOS. That said, the earlier a port gets probed, the bigger gpio number it gets assigned. To match this, the irq_base for gpio should be assigned from 'MXC_GPIO_IRQ_START + ARCH_NR_GPIOS' decreasingly. Signed-off-by: Shawn Guo <shawn.guo@linaro.org>