diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-09-15 03:57:00 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-10-14 22:03:17 -0400 |
commit | 73930eb31b2ecb0177c9bf81a35b4d2d73716951 (patch) | |
tree | 0a341a992eb4f6b986a6fc665b4b48e049a3cbe3 /arch/arm/mach-imx/mm-imx1.c | |
parent | 04bbd8ef533fed260ea8cc249b534c1cbbc7f9d0 (diff) |
dma: imx-dma: retrieve MEM and IRQ from resources
Retrieve MEM and IRQ from resources rather than directly using the
value by including machine header.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'arch/arm/mach-imx/mm-imx1.c')
-rw-r--r-- | arch/arm/mach-imx/mm-imx1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mm-imx1.c b/arch/arm/mach-imx/mm-imx1.c index 118aa928cd8b..9de81bf6de96 100644 --- a/arch/arm/mach-imx/mm-imx1.c +++ b/arch/arm/mach-imx/mm-imx1.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <mach/hardware.h> | 25 | #include <mach/hardware.h> |
26 | 26 | ||
27 | #include "common.h" | 27 | #include "common.h" |
28 | #include "devices/devices-common.h" | ||
28 | #include "iomux-v1.h" | 29 | #include "iomux-v1.h" |
29 | 30 | ||
30 | static struct map_desc imx_io_desc[] __initdata = { | 31 | static struct map_desc imx_io_desc[] __initdata = { |
@@ -59,5 +60,6 @@ void __init imx1_soc_init(void) | |||
59 | MX1_GPIO_INT_PORTC, 0); | 60 | MX1_GPIO_INT_PORTC, 0); |
60 | mxc_register_gpio("imx1-gpio", 3, MX1_GPIO4_BASE_ADDR, SZ_256, | 61 | mxc_register_gpio("imx1-gpio", 3, MX1_GPIO4_BASE_ADDR, SZ_256, |
61 | MX1_GPIO_INT_PORTD, 0); | 62 | MX1_GPIO_INT_PORTD, 0); |
63 | imx_add_imx_dma(MX1_DMA_BASE_ADDR, MX1_DMA_INT, MX1_DMA_ERR); | ||
62 | pinctrl_provide_dummies(); | 64 | pinctrl_provide_dummies(); |
63 | } | 65 | } |