diff options
author | Tom Rini <trini@ti.com> | 2014-05-13 17:09:28 -0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-05-13 17:09:28 -0400 |
commit | 557a3319089499aa0e55d65a6b43b7137f362003 (patch) | |
tree | 092341615ca6449473e4d9f7cb2158391bb86892 /board/freescale/common/sys_eeprom.c | |
parent | 27b4e4b9913f65b52d20485dff3f8800bf78f3d7 (diff) | |
parent | 8ad5d45e0044f5e64dbe7c6bd4e6aa0121a26b23 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Diffstat (limited to 'board/freescale/common/sys_eeprom.c')
-rw-r--r-- | board/freescale/common/sys_eeprom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/freescale/common/sys_eeprom.c b/board/freescale/common/sys_eeprom.c index 9c18dd82424..33a5a5a8f53 100644 --- a/board/freescale/common/sys_eeprom.c +++ b/board/freescale/common/sys_eeprom.c @@ -425,13 +425,13 @@ int mac_read_from_eeprom(void) if (read_eeprom()) { printf("Read failed.\n"); - return -1; + return 0; } if (!is_valid) { printf("Invalid ID (%02x %02x %02x %02x)\n", e.id[0], e.id[1], e.id[2], e.id[3]); - return -1; + return 0; } #ifdef CONFIG_SYS_I2C_EEPROM_NXID @@ -447,7 +447,7 @@ int mac_read_from_eeprom(void) crcp = (void *)&e + crc_offset; if (crc != be32_to_cpu(*crcp)) { printf("CRC mismatch (%08x != %08x)\n", crc, be32_to_cpu(e.crc)); - return -1; + return 0; } #ifdef CONFIG_SYS_I2C_EEPROM_NXID |