ARM: imx: move irq_domain_add_legacy call into tzic driver
authorShawn Guo <shawn.guo@linaro.org>
Wed, 13 Jun 2012 02:20:58 +0000 (10:20 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Sun, 1 Jul 2012 13:57:29 +0000 (21:57 +0800)
commitf3eac29da1f6a477722b56ff00228e8a13f8f6c6
tree8b50b39a755008a9f890d7b31600940584140dc1
parent1ab7ef158dfbaf6314b6660a3e3fb037cba2a1ca
ARM: imx: move irq_domain_add_legacy call into tzic driver

Move irq_domain_add_legacy call from imx5*-dt.c into tzic init function
and have the tzic driver adopt irqdomain support for both DT and non-DT
boot.

Now tzic init function calls irq_alloc_descs to get irq_base and adds
a lenacy irqdomain with the irq_base, so that the mapping between tzic
irq and Linux irq number can be handled by irqdomain.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
arch/arm/mach-imx/imx51-dt.c
arch/arm/mach-imx/imx53-dt.c
arch/arm/plat-mxc/tzic.c