summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2011-12-06 14:15:02 +0000
committerArnd Bergmann <arnd@arndb.de>2011-12-06 14:15:02 +0000
commitfec607aab5dca019cfc76768fa0b5908d47a55b1 (patch)
tree67d537e1db8f63dd7aff931665663acfeda4c39f /arch/arm/mach-imx
parente6b6edf267c6d157d22c7d409182854bf0c110a0 (diff)
parent04aafd713bae8a75933c7821dc012b0ec9046bca (diff)
downloadop-kernel-dev-fec607aab5dca019cfc76768fa0b5908d47a55b1.zip
op-kernel-dev-fec607aab5dca019cfc76768fa0b5908d47a55b1.tar.gz
Merge branch 'imx/fix-irqdomain' of git://git.linaro.org/people/shawnguo/linux-2.6 into fixes
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r--arch/arm/mach-imx/mach-imx6q.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c
index 9cd860a..8deb012 100644
--- a/arch/arm/mach-imx/mach-imx6q.c
+++ b/arch/arm/mach-imx/mach-imx6q.c
@@ -37,14 +37,15 @@ static void __init imx6q_map_io(void)
imx6q_clock_map_io();
}
-static void __init imx6q_gpio_add_irq_domain(struct device_node *np,
+static int __init imx6q_gpio_add_irq_domain(struct device_node *np,
struct device_node *interrupt_parent)
{
- static int gpio_irq_base = MXC_GPIO_IRQ_START + ARCH_NR_GPIOS -
- 32 * 7; /* imx6q gets 7 gpio ports */
+ static int gpio_irq_base = MXC_GPIO_IRQ_START + ARCH_NR_GPIOS;
+ gpio_irq_base -= 32;
irq_domain_add_simple(np, gpio_irq_base);
- gpio_irq_base += 32;
+
+ return 0;
}
static const struct of_device_id imx6q_irq_match[] __initconst = {
OpenPOWER on IntegriCloud