diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-24 09:20:44 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-30 03:00:56 -0400 |
commit | 7cc3c84666db63995d44b44276d304c6f0c92630 (patch) | |
tree | 2abfe86735a6c86090b300aff28c0891a01aa916 /arch/arm/mach-mx25/mach-mx25_3ds.c | |
parent | 3c5227fd40b1250490c34b50298973f32b7dcf96 (diff) |
ARM: imx: dynamically register imx-uart devices (imx25)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx25/mach-mx25_3ds.c')
-rw-r--r-- | arch/arm/mach-mx25/mach-mx25_3ds.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-mx25/mach-mx25_3ds.c b/arch/arm/mach-mx25/mach-mx25_3ds.c index e1e98864c8e7..978ad00b807c 100644 --- a/arch/arm/mach-mx25/mach-mx25_3ds.c +++ b/arch/arm/mach-mx25/mach-mx25_3ds.c | |||
@@ -38,7 +38,6 @@ | |||
38 | #include <asm/memory.h> | 38 | #include <asm/memory.h> |
39 | #include <asm/mach/map.h> | 39 | #include <asm/mach/map.h> |
40 | #include <mach/common.h> | 40 | #include <mach/common.h> |
41 | #include <mach/imx-uart.h> | ||
42 | #include <mach/mx25.h> | 41 | #include <mach/mx25.h> |
43 | #include <mach/imxfb.h> | 42 | #include <mach/imxfb.h> |
44 | #include <mach/iomux-mx25.h> | 43 | #include <mach/iomux-mx25.h> |
@@ -46,7 +45,7 @@ | |||
46 | #include "devices-imx25.h" | 45 | #include "devices-imx25.h" |
47 | #include "devices.h" | 46 | #include "devices.h" |
48 | 47 | ||
49 | static struct imxuart_platform_data uart_pdata = { | 48 | static const struct imxuart_platform_data uart_pdata __initconst = { |
50 | .flags = IMXUART_HAVE_RTSCTS, | 49 | .flags = IMXUART_HAVE_RTSCTS, |
51 | }; | 50 | }; |
52 | 51 | ||
@@ -150,7 +149,7 @@ static void __init mx25pdk_init(void) | |||
150 | mxc_iomux_v3_setup_multiple_pads(mx25pdk_pads, | 149 | mxc_iomux_v3_setup_multiple_pads(mx25pdk_pads, |
151 | ARRAY_SIZE(mx25pdk_pads)); | 150 | ARRAY_SIZE(mx25pdk_pads)); |
152 | 151 | ||
153 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | 152 | imx25_add_imx_uart0(&uart_pdata); |
154 | mxc_register_device(&mxc_usbh2, NULL); | 153 | mxc_register_device(&mxc_usbh2, NULL); |
155 | imx25_add_mxc_nand(&mx25pdk_nand_board_info); | 154 | imx25_add_mxc_nand(&mx25pdk_nand_board_info); |
156 | mxc_register_device(&mx25_rtc_device, NULL); | 155 | mxc_register_device(&mx25_rtc_device, NULL); |