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-mx31moboard.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-mx31moboard.c')
-rw-r--r-- | arch/arm/mach-mx3/mach-mx31moboard.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/arm/mach-mx3/mach-mx31moboard.c b/arch/arm/mach-mx3/mach-mx31moboard.c index 689b0681a409..95633bb063bf 100644 --- a/arch/arm/mach-mx3/mach-mx31moboard.c +++ b/arch/arm/mach-mx3/mach-mx31moboard.c | |||
@@ -38,7 +38,6 @@ | |||
38 | #include <mach/board-mx31moboard.h> | 38 | #include <mach/board-mx31moboard.h> |
39 | #include <mach/common.h> | 39 | #include <mach/common.h> |
40 | #include <mach/hardware.h> | 40 | #include <mach/hardware.h> |
41 | #include <mach/imx-uart.h> | ||
42 | #include <mach/iomux-mx3.h> | 41 | #include <mach/iomux-mx3.h> |
43 | #include <mach/ipu.h> | 42 | #include <mach/ipu.h> |
44 | #include <mach/mmc.h> | 43 | #include <mach/mmc.h> |
@@ -131,11 +130,11 @@ static int moboard_uart0_init(struct platform_device *pdev) | |||
131 | return 0; | 130 | return 0; |
132 | } | 131 | } |
133 | 132 | ||
134 | static struct imxuart_platform_data uart0_pdata = { | 133 | static const struct imxuart_platform_data uart0_pdata __initconst = { |
135 | .init = moboard_uart0_init, | 134 | .init = moboard_uart0_init, |
136 | }; | 135 | }; |
137 | 136 | ||
138 | static struct imxuart_platform_data uart4_pdata = { | 137 | static const struct imxuart_platform_data uart4_pdata __initconst = { |
139 | .flags = IMXUART_HAVE_RTSCTS, | 138 | .flags = IMXUART_HAVE_RTSCTS, |
140 | }; | 139 | }; |
141 | 140 | ||
@@ -495,9 +494,8 @@ static void __init mxc_board_init(void) | |||
495 | 494 | ||
496 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 495 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
497 | 496 | ||
498 | mxc_register_device(&mxc_uart_device0, &uart0_pdata); | 497 | imx31_add_imx_uart0(&uart0_pdata); |
499 | 498 | imx31_add_imx_uart4(&uart4_pdata); | |
500 | mxc_register_device(&mxc_uart_device4, &uart4_pdata); | ||
501 | 499 | ||
502 | imx31_add_imx_i2c0(&moboard_i2c0_data); | 500 | imx31_add_imx_i2c0(&moboard_i2c0_data); |
503 | imx31_add_imx_i2c1(&moboard_i2c1_data); | 501 | imx31_add_imx_i2c1(&moboard_i2c1_data); |