]> git.baikalelectronics.ru Git - kernel.git/commit
arm/imx: fix irq_base for gpio
authorShawn Guo <shawn.guo@linaro.org>
Thu, 1 Dec 2011 06:49:29 +0000 (14:49 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Thu, 1 Dec 2011 08:15:15 +0000 (16:15 +0800)
commitc710dc67ceaced2c2d6954ab7a15775c55e44cf4
tree5d0a8b41980b7e229e12510c9d24e27573cf6a8a
parent41d6e733e8d3c7f00a1357176ec4509378f10b5b
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>
arch/arm/mach-imx/mach-imx6q.c
arch/arm/mach-mx5/imx51-dt.c
arch/arm/mach-mx5/imx53-dt.c