[PATCH 3/5] ARM: ccmx51: Set MAC address before FEC device registration

Alexander Shiyan shc_work at mail.ru
Tue Jan 22 06:08:33 EST 2013


Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
---
 arch/arm/boards/ccxmx51/ccxmx51.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/boards/ccxmx51/ccxmx51.c b/arch/arm/boards/ccxmx51/ccxmx51.c
index 1ca966e..a9bf16a 100644
--- a/arch/arm/boards/ccxmx51/ccxmx51.c
+++ b/arch/arm/boards/ccxmx51/ccxmx51.c
@@ -433,8 +433,8 @@ static int ccxmx51_devices_init(void)
 
 #ifdef CONFIG_DRIVER_NET_FEC_IMX
 	if (ccxmx51_id->eth0 && !pwr) {
-		imx51_add_fec(&fec_info);
 		eth_register_ethaddr(0, hwid);
+		imx51_add_fec(&fec_info);
 	}
 #endif
 
-- 
1.7.3.4




More information about the barebox mailing list