]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/compulab/cm_t335/cm_t335.c
net: cosmetic: Name ethaddr variables consistently
[karo-tx-uboot.git] / board / compulab / cm_t335 / cm_t335.c
index 9583149bed61bd315dcea3c6abdfa1b1c9226a49..428aee6d242ff707c1fdc2db2e793ed46967cb4f 100644 (file)
@@ -110,11 +110,11 @@ static int handle_mac_address(void)
        if (rv)
                return 0;
 
-       rv = cl_eeprom_read_mac_addr(enetaddr);
+       rv = cl_eeprom_read_mac_addr(enetaddr, CONFIG_SYS_I2C_EEPROM_BUS);
        if (rv)
                get_efuse_mac_addr(enetaddr);
 
-       if (!is_valid_ether_addr(enetaddr))
+       if (!is_valid_ethaddr(enetaddr))
                return -1;
 
        return eth_setenv_enetaddr("ethaddr", enetaddr);