aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx5/board-mx51_babbage.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-10-06 06:00:18 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2010-10-11 09:31:37 -0400
commit6bd96f3c332d422c0dda302f1b32c8e21dd75ee3 (patch)
tree5a885aac1d005df8d0dc51896d4dfe9ef03e62df /arch/arm/mach-mx5/board-mx51_babbage.c
parent8a8d20600dce01553c8505b7c576f8d4307e4ba8 (diff)
ARM: imx: dynamically register fec devices
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> 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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c
index 7c0b6618a164..23ee4a447406 100644
--- a/arch/arm/mach-mx5/board-mx51_babbage.c
+++ b/arch/arm/mach-mx5/board-mx51_babbage.c
@@ -46,10 +46,6 @@
46#define MX51_USB_PLL_DIV_19_2_MHZ 0x01 46#define MX51_USB_PLL_DIV_19_2_MHZ 0x01
47#define MX51_USB_PLL_DIV_24_MHZ 0x02 47#define MX51_USB_PLL_DIV_24_MHZ 0x02
48 48
49static struct platform_device *devices[] __initdata = {
50 &mxc_fec_device,
51};
52
53static struct pad_desc mx51babbage_pads[] = { 49static struct pad_desc mx51babbage_pads[] = {
54 /* UART1 */ 50 /* UART1 */
55 MX51_PAD_UART1_RXD__UART1_RXD, 51 MX51_PAD_UART1_RXD__UART1_RXD,
@@ -290,7 +286,7 @@ static void __init mxc_board_init(void)
290 ARRAY_SIZE(mx51babbage_pads)); 286 ARRAY_SIZE(mx51babbage_pads));
291 mxc_init_imx_uart(); 287 mxc_init_imx_uart();
292 babbage_fec_reset(); 288 babbage_fec_reset();
293 platform_add_devices(devices, ARRAY_SIZE(devices)); 289 imx51_add_fec(NULL);
294 290
295 imx51_add_imx_i2c(0, &babbage_i2c_data); 291 imx51_add_imx_i2c(0, &babbage_i2c_data);
296 imx51_add_imx_i2c(1, &babbage_i2c_data); 292 imx51_add_imx_i2c(1, &babbage_i2c_data);