diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-23 05:49:34 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-30 03:01:00 -0400 |
commit | 6eafde5f02b1f34b7e083d1d6522f40e850bf355 (patch) | |
tree | 67aa1fe1d1cfdff60b1bfcf95ee697167e19f3a1 /arch/arm/mach-mx3/mach-mx35_3ds.c | |
parent | 16cf5c41514fd94ff1e8b6be091e4b4732688fa6 (diff) |
ARM: imx: dynamically register imx-uart devices (imx35)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mach-mx35_3ds.c')
-rw-r--r-- | arch/arm/mach-mx3/mach-mx35_3ds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-mx3/mach-mx35_3ds.c b/arch/arm/mach-mx3/mach-mx35_3ds.c index cfac7781f8b4..1c30d7212f17 100644 --- a/arch/arm/mach-mx3/mach-mx35_3ds.c +++ b/arch/arm/mach-mx3/mach-mx35_3ds.c | |||
@@ -34,12 +34,12 @@ | |||
34 | 34 | ||
35 | #include <mach/hardware.h> | 35 | #include <mach/hardware.h> |
36 | #include <mach/common.h> | 36 | #include <mach/common.h> |
37 | #include <mach/imx-uart.h> | ||
38 | #include <mach/iomux-mx35.h> | 37 | #include <mach/iomux-mx35.h> |
39 | 38 | ||
39 | #include "devices-imx35.h" | ||
40 | #include "devices.h" | 40 | #include "devices.h" |
41 | 41 | ||
42 | static struct imxuart_platform_data uart_pdata = { | 42 | static const struct imxuart_platform_data uart_pdata __initconst = { |
43 | .flags = IMXUART_HAVE_RTSCTS, | 43 | .flags = IMXUART_HAVE_RTSCTS, |
44 | }; | 44 | }; |
45 | 45 | ||
@@ -92,7 +92,7 @@ static void __init mxc_board_init(void) | |||
92 | 92 | ||
93 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 93 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
94 | 94 | ||
95 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | 95 | imx35_add_imx_uart0(&uart_pdata); |
96 | 96 | ||
97 | mxc_register_device(&mxc_otg_udc_device, &usb_pdata); | 97 | mxc_register_device(&mxc_otg_udc_device, &usb_pdata); |
98 | } | 98 | } |