diff options
author | Eric Jarrige | 2010-04-16 00:03:19 +0200 |
---|---|---|
committer | Ben Warren | 2010-05-03 14:52:49 -0700 |
commit | 2e236bf28e729aca28e60c153dd8f913d1b3d058 (patch) | |
tree | 2c824163faab5372c078ce3a0d190c5c0391d5f4 | |
parent | 538be58568542aac2ed4bdf4c05398cfa67e98f0 (diff) |
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>
-rw-r--r-- | drivers/net/fec_mxc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index fdc288c63a7..68be74775c6 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -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 } |