aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/mach-mx27_3ds.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-06-23 03:36:01 -0400
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-06-30 03:00:57 -0400
commitd5dac4a69fe571ec12d999174e0425f2641325d4 (patch)
tree05d979412730c14e02c1d4e974d32907cf0f537d /arch/arm/mach-imx/mach-mx27_3ds.c
parent7cc3c84666db63995d44b44276d304c6f0c92630 (diff)
ARM: imx: dynamically register imx-uart devices (imx27)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/mach-mx27_3ds.c')
-rw-r--r--arch/arm/mach-imx/mach-mx27_3ds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-imx/mach-mx27_3ds.c b/arch/arm/mach-imx/mach-mx27_3ds.c
index da3eeff4a936..e2a82bab012b 100644
--- a/arch/arm/mach-imx/mach-mx27_3ds.c
+++ b/arch/arm/mach-imx/mach-mx27_3ds.c
@@ -27,9 +27,9 @@
27#include <asm/mach/time.h> 27#include <asm/mach/time.h>
28#include <mach/hardware.h> 28#include <mach/hardware.h>
29#include <mach/common.h> 29#include <mach/common.h>
30#include <mach/imx-uart.h>
31#include <mach/iomux-mx27.h> 30#include <mach/iomux-mx27.h>
32 31
32#include "devices-imx27.h"
33#include "devices.h" 33#include "devices.h"
34 34
35static unsigned int mx27pdk_pins[] = { 35static unsigned int mx27pdk_pins[] = {
@@ -59,7 +59,7 @@ static unsigned int mx27pdk_pins[] = {
59 PF23_AIN_FEC_TX_EN, 59 PF23_AIN_FEC_TX_EN,
60}; 60};
61 61
62static struct imxuart_platform_data uart_pdata = { 62static const struct imxuart_platform_data uart_pdata __initconst = {
63 .flags = IMXUART_HAVE_RTSCTS, 63 .flags = IMXUART_HAVE_RTSCTS,
64}; 64};
65 65
@@ -71,7 +71,7 @@ static void __init mx27pdk_init(void)
71{ 71{
72 mxc_gpio_setup_multiple_pins(mx27pdk_pins, ARRAY_SIZE(mx27pdk_pins), 72 mxc_gpio_setup_multiple_pins(mx27pdk_pins, ARRAY_SIZE(mx27pdk_pins),
73 "mx27pdk"); 73 "mx27pdk");
74 mxc_register_device(&imx2x_uart_device0, &uart_pdata); 74 imx27_add_imx_uart0(&uart_pdata);
75 platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); 75 platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices));
76} 76}
77 77