diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2011-05-10 10:21:00 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-07-07 04:00:00 -0400 |
commit | 07d1483a420861eb5581ebff74904c8a5ec33b19 (patch) | |
tree | 1fc51aaaacdf655fbffb1c6b1de5d8d04fcf61ea /arch/arm/mach-imx | |
parent | 7cf7381f35330b54cc894bd74137aae1ebb07bbf (diff) |
ARM: imx/mach-apf9328: Simplify UART0 registration
As no flag is passed into UART0 platform data, pass NULL argument
when registering UART0.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/mach-apf9328.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/mach-imx/mach-apf9328.c b/arch/arm/mach-imx/mach-apf9328.c index 15e45c84e371..c11d0ab14848 100644 --- a/arch/arm/mach-imx/mach-apf9328.c +++ b/arch/arm/mach-imx/mach-apf9328.c | |||
@@ -99,11 +99,6 @@ static struct platform_device dm9000x_device = { | |||
99 | } | 99 | } |
100 | }; | 100 | }; |
101 | 101 | ||
102 | /* --- SERIAL RESSOURCE --- */ | ||
103 | static const struct imxuart_platform_data uart0_pdata __initconst = { | ||
104 | .flags = 0, | ||
105 | }; | ||
106 | |||
107 | static const struct imxuart_platform_data uart1_pdata __initconst = { | 102 | static const struct imxuart_platform_data uart1_pdata __initconst = { |
108 | .flags = IMXUART_HAVE_RTSCTS, | 103 | .flags = IMXUART_HAVE_RTSCTS, |
109 | }; | 104 | }; |
@@ -119,7 +114,7 @@ static void __init apf9328_init(void) | |||
119 | ARRAY_SIZE(apf9328_pins), | 114 | ARRAY_SIZE(apf9328_pins), |
120 | "APF9328"); | 115 | "APF9328"); |
121 | 116 | ||
122 | imx1_add_imx_uart0(&uart0_pdata); | 117 | imx1_add_imx_uart0(NULL); |
123 | imx1_add_imx_uart1(&uart1_pdata); | 118 | imx1_add_imx_uart1(&uart1_pdata); |
124 | 119 | ||
125 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 120 | platform_add_devices(devices, ARRAY_SIZE(devices)); |