diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-22 08:50:59 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-30 03:00:54 -0400 |
commit | d112f4e4e57cbcf81e5f04a0eba77804d14d8640 (patch) | |
tree | 97c8001c76e667e87dd1ee98c7c2741f08ff8255 /arch/arm/mach-imx/mach-mx1ads.c | |
parent | 2db6823773760412706168be6378eef30c29808b (diff) |
ARM: imx: dynamically register imx-uart devices (imx1)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/mach-mx1ads.c')
-rw-r--r-- | arch/arm/mach-imx/mach-mx1ads.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/arch/arm/mach-imx/mach-mx1ads.c b/arch/arm/mach-imx/mach-mx1ads.c index 339d41ad19d5..77a760cfadc0 100644 --- a/arch/arm/mach-imx/mach-mx1ads.c +++ b/arch/arm/mach-imx/mach-mx1ads.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <mach/common.h> | 26 | #include <mach/common.h> |
27 | #include <mach/hardware.h> | 27 | #include <mach/hardware.h> |
28 | #include <mach/i2c.h> | 28 | #include <mach/i2c.h> |
29 | #include <mach/imx-uart.h> | ||
30 | #include <mach/iomux-mx1.h> | 29 | #include <mach/iomux-mx1.h> |
31 | #include <mach/irqs.h> | 30 | #include <mach/irqs.h> |
32 | 31 | ||
@@ -59,12 +58,12 @@ static int mx1ads_pins[] = { | |||
59 | * UARTs platform data | 58 | * UARTs platform data |
60 | */ | 59 | */ |
61 | 60 | ||
62 | static struct imxuart_platform_data uart_pdata[] = { | 61 | static const struct imxuart_platform_data uart0_pdata __initconst = { |
63 | { | 62 | .flags = IMXUART_HAVE_RTSCTS, |
64 | .flags = IMXUART_HAVE_RTSCTS, | 63 | }; |
65 | }, { | 64 | |
66 | .flags = IMXUART_HAVE_RTSCTS, | 65 | static const struct imxuart_platform_data uart1_pdata __initconst = { |
67 | }, | 66 | .flags = IMXUART_HAVE_RTSCTS, |
68 | }; | 67 | }; |
69 | 68 | ||
70 | /* | 69 | /* |
@@ -122,8 +121,8 @@ static void __init mx1ads_init(void) | |||
122 | ARRAY_SIZE(mx1ads_pins), "mx1ads"); | 121 | ARRAY_SIZE(mx1ads_pins), "mx1ads"); |
123 | 122 | ||
124 | /* UART */ | 123 | /* UART */ |
125 | mxc_register_device(&imx1_uart_device0, &uart_pdata[0]); | 124 | imx1_add_imx_uart0(&uart0_pdata); |
126 | mxc_register_device(&imx1_uart_device1, &uart_pdata[1]); | 125 | imx1_add_imx_uart1(&uart1_pdata); |
127 | 126 | ||
128 | /* Physmap flash */ | 127 | /* Physmap flash */ |
129 | mxc_register_device(&flash_device, &mx1ads_flash_data); | 128 | mxc_register_device(&flash_device, &mx1ads_flash_data); |