diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-14 05:30:33 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-27 08:32:50 -0500 |
commit | 27d2d62b8b03c9dd2de9a367c19812e089da71c5 (patch) | |
tree | fb9f54e5b420634bb8f633461e091e7b551d3b67 /arch/arm/mach-mx5/board-mx51_babbage.c | |
parent | 0c1c8511a39ac980921e1c06b3f5809c7a42b522 (diff) |
ARM i.MX51 mx51 babbage: remove unnecessary CONFIG_SERIAL_IMX ifdefs
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx5/board-mx51_babbage.c')
-rw-r--r-- | arch/arm/mach-mx5/board-mx51_babbage.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c index 1d231e84107..d9d402eb947 100644 --- a/arch/arm/mach-mx5/board-mx51_babbage.c +++ b/arch/arm/mach-mx5/board-mx51_babbage.c | |||
@@ -161,23 +161,10 @@ static iomux_v3_cfg_t mx51babbage_pads[] = { | |||
161 | }; | 161 | }; |
162 | 162 | ||
163 | /* Serial ports */ | 163 | /* Serial ports */ |
164 | #if defined(CONFIG_SERIAL_IMX) || defined(CONFIG_SERIAL_IMX_MODULE) | ||
165 | static const struct imxuart_platform_data uart_pdata __initconst = { | 164 | static const struct imxuart_platform_data uart_pdata __initconst = { |
166 | .flags = IMXUART_HAVE_RTSCTS, | 165 | .flags = IMXUART_HAVE_RTSCTS, |
167 | }; | 166 | }; |
168 | 167 | ||
169 | static inline void mxc_init_imx_uart(void) | ||
170 | { | ||
171 | imx51_add_imx_uart(0, &uart_pdata); | ||
172 | imx51_add_imx_uart(1, &uart_pdata); | ||
173 | imx51_add_imx_uart(2, &uart_pdata); | ||
174 | } | ||
175 | #else /* !SERIAL_IMX */ | ||
176 | static inline void mxc_init_imx_uart(void) | ||
177 | { | ||
178 | } | ||
179 | #endif /* SERIAL_IMX */ | ||
180 | |||
181 | static const struct imxi2c_platform_data babbage_i2c_data __initconst = { | 168 | static const struct imxi2c_platform_data babbage_i2c_data __initconst = { |
182 | .bitrate = 100000, | 169 | .bitrate = 100000, |
183 | }; | 170 | }; |
@@ -360,7 +347,11 @@ static void __init mxc_board_init(void) | |||
360 | #endif | 347 | #endif |
361 | mxc_iomux_v3_setup_multiple_pads(mx51babbage_pads, | 348 | mxc_iomux_v3_setup_multiple_pads(mx51babbage_pads, |
362 | ARRAY_SIZE(mx51babbage_pads)); | 349 | ARRAY_SIZE(mx51babbage_pads)); |
363 | mxc_init_imx_uart(); | 350 | |
351 | imx51_add_imx_uart(0, &uart_pdata); | ||
352 | imx51_add_imx_uart(1, &uart_pdata); | ||
353 | imx51_add_imx_uart(2, &uart_pdata); | ||
354 | |||
364 | babbage_fec_reset(); | 355 | babbage_fec_reset(); |
365 | imx51_add_fec(NULL); | 356 | imx51_add_fec(NULL); |
366 | 357 | ||