aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/mach-mx31_3ds.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-06-23 05:46:16 -0400
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-06-30 03:00:58 -0400
commit16cf5c41514fd94ff1e8b6be091e4b4732688fa6 (patch)
treeb6c14199c6bac7a174c22a3d05eb48689a81df47 /arch/arm/mach-mx3/mach-mx31_3ds.c
parentd5dac4a69fe571ec12d999174e0425f2641325d4 (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-mx31_3ds.c')
-rw-r--r--arch/arm/mach-mx3/mach-mx31_3ds.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-mx3/mach-mx31_3ds.c b/arch/arm/mach-mx3/mach-mx31_3ds.c
index 2aa3e581e840..4c021c590306 100644
--- a/arch/arm/mach-mx3/mach-mx31_3ds.c
+++ b/arch/arm/mach-mx3/mach-mx31_3ds.c
@@ -33,7 +33,6 @@
33#include <asm/memory.h> 33#include <asm/memory.h>
34#include <asm/mach/map.h> 34#include <asm/mach/map.h>
35#include <mach/common.h> 35#include <mach/common.h>
36#include <mach/imx-uart.h>
37#include <mach/iomux-mx3.h> 36#include <mach/iomux-mx3.h>
38 37
39#include "devices-imx31.h" 38#include "devices-imx31.h"
@@ -233,7 +232,7 @@ static struct fsl_usb2_platform_data usbotg_pdata = {
233 .phy_mode = FSL_USB2_PHY_ULPI, 232 .phy_mode = FSL_USB2_PHY_ULPI,
234}; 233};
235 234
236static struct imxuart_platform_data uart_pdata = { 235static const struct imxuart_platform_data uart_pdata __initconst = {
237 .flags = IMXUART_HAVE_RTSCTS, 236 .flags = IMXUART_HAVE_RTSCTS,
238}; 237};
239 238
@@ -415,7 +414,7 @@ static void __init mxc_board_init(void)
415 mxc_iomux_setup_multiple_pins(mx31_3ds_pins, ARRAY_SIZE(mx31_3ds_pins), 414 mxc_iomux_setup_multiple_pins(mx31_3ds_pins, ARRAY_SIZE(mx31_3ds_pins),
416 "mx31_3ds"); 415 "mx31_3ds");
417 416
418 mxc_register_device(&mxc_uart_device0, &uart_pdata); 417 imx31_add_imx_uart0(&uart_pdata);
419 imx31_add_mxc_nand(&mx31_3ds_nand_board_info); 418 imx31_add_mxc_nand(&mx31_3ds_nand_board_info);
420 419
421 imx31_add_spi_imx0(&spi1_pdata); 420 imx31_add_spi_imx0(&spi1_pdata);