fec_mxc.c: Fix MX27 FEC MAC validity check

Fix MX27 FEC logic to check validity of the MAC address in fuse.
Only null (empty fuse) or invalid MAC address was retrieved from mx27 fuses before this change.

Signed-off-by:  Eric Jarrige <jorasse@armadeus.org>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
Eric Jarrige 2010-04-16 00:03:19 +02:00 committed by Ben Warren
parent 538be58568
commit 2e236bf28e

View File

@ -325,7 +325,7 @@ static int fec_get_hwaddr(struct eth_device *dev, unsigned char *mac)
for (i = 0; i < 6; i++)
mac[6-1-i] = readl(&iim->iim_bank_area0[IIM0_MAC + i]);
return is_valid_ether_addr(mac);
return !is_valid_ether_addr(mac);
#endif
}