diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-23 05:46:16 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-30 03:00:58 -0400 |
commit | 16cf5c41514fd94ff1e8b6be091e4b4732688fa6 (patch) | |
tree | b6c14199c6bac7a174c22a3d05eb48689a81df47 /arch/arm/mach-mx3/mach-mx31ads.c | |
parent | d5dac4a69fe571ec12d999174e0425f2641325d4 (diff) |
ARM: imx: dynamically register imx-uart devices (imx31)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mach-mx31ads.c')
-rw-r--r-- | arch/arm/mach-mx3/mach-mx31ads.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-mx3/mach-mx31ads.c b/arch/arm/mach-mx3/mach-mx31ads.c index b6dc6c848b51..94b3e7c42404 100644 --- a/arch/arm/mach-mx3/mach-mx31ads.c +++ b/arch/arm/mach-mx3/mach-mx31ads.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <asm/memory.h> | 29 | #include <asm/memory.h> |
30 | #include <asm/mach/map.h> | 30 | #include <asm/mach/map.h> |
31 | #include <mach/common.h> | 31 | #include <mach/common.h> |
32 | #include <mach/imx-uart.h> | ||
33 | #include <mach/iomux-mx3.h> | 32 | #include <mach/iomux-mx3.h> |
34 | 33 | ||
35 | #ifdef CONFIG_MACH_MX31ADS_WM1133_EV1 | 34 | #ifdef CONFIG_MACH_MX31ADS_WM1133_EV1 |
@@ -124,7 +123,7 @@ static inline int mxc_init_extuart(void) | |||
124 | #endif | 123 | #endif |
125 | 124 | ||
126 | #if defined(CONFIG_SERIAL_IMX) || defined(CONFIG_SERIAL_IMX_MODULE) | 125 | #if defined(CONFIG_SERIAL_IMX) || defined(CONFIG_SERIAL_IMX_MODULE) |
127 | static struct imxuart_platform_data uart_pdata = { | 126 | static const struct imxuart_platform_data uart_pdata __initconst = { |
128 | .flags = IMXUART_HAVE_RTSCTS, | 127 | .flags = IMXUART_HAVE_RTSCTS, |
129 | }; | 128 | }; |
130 | 129 | ||
@@ -138,7 +137,7 @@ static unsigned int uart_pins[] = { | |||
138 | static inline void mxc_init_imx_uart(void) | 137 | static inline void mxc_init_imx_uart(void) |
139 | { | 138 | { |
140 | mxc_iomux_setup_multiple_pins(uart_pins, ARRAY_SIZE(uart_pins), "uart-0"); | 139 | mxc_iomux_setup_multiple_pins(uart_pins, ARRAY_SIZE(uart_pins), "uart-0"); |
141 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | 140 | imx31_add_imx_uart0(&uart_pdata); |
142 | } | 141 | } |
143 | #else /* !SERIAL_IMX */ | 142 | #else /* !SERIAL_IMX */ |
144 | static inline void mxc_init_imx_uart(void) | 143 | static inline void mxc_init_imx_uart(void) |