aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/mach-imx27lite.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-imx27lite.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-imx27lite.c')
-rw-r--r--arch/arm/mach-imx/mach-imx27lite.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-imx/mach-imx27lite.c b/arch/arm/mach-imx/mach-imx27lite.c
index 6df5c7d340ba..22a2b5d91213 100644
--- a/arch/arm/mach-imx/mach-imx27lite.c
+++ b/arch/arm/mach-imx/mach-imx27lite.c
@@ -22,9 +22,9 @@
22#include <asm/mach/map.h> 22#include <asm/mach/map.h>
23#include <mach/hardware.h> 23#include <mach/hardware.h>
24#include <mach/common.h> 24#include <mach/common.h>
25#include <mach/imx-uart.h>
26#include <mach/iomux-mx27.h> 25#include <mach/iomux-mx27.h>
27 26
27#include "devices-imx27.h"
28#include "devices.h" 28#include "devices.h"
29 29
30static unsigned int mx27lite_pins[] = { 30static unsigned int mx27lite_pins[] = {
@@ -54,7 +54,7 @@ static unsigned int mx27lite_pins[] = {
54 PF23_AIN_FEC_TX_EN, 54 PF23_AIN_FEC_TX_EN,
55}; 55};
56 56
57static struct imxuart_platform_data uart_pdata = { 57static const struct imxuart_platform_data uart_pdata __initconst = {
58 .flags = IMXUART_HAVE_RTSCTS, 58 .flags = IMXUART_HAVE_RTSCTS,
59}; 59};
60 60
@@ -66,7 +66,7 @@ static void __init mx27lite_init(void)
66{ 66{
67 mxc_gpio_setup_multiple_pins(mx27lite_pins, ARRAY_SIZE(mx27lite_pins), 67 mxc_gpio_setup_multiple_pins(mx27lite_pins, ARRAY_SIZE(mx27lite_pins),
68 "imx27lite"); 68 "imx27lite");
69 mxc_register_device(&imx2x_uart_device0, &uart_pdata); 69 imx27_add_imx_uart0(&uart_pdata);
70 platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); 70 platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices));
71} 71}
72 72