ARM: davinci: mityomapl138: don't read the MAC address from machine code
This is now done by the emac driver using a registered nvmem cell. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
This commit is contained in:
Родитель
dab9ad4425
Коммит
5e4ac9274b
|
@ -121,7 +121,6 @@ static void read_factory_config(struct nvmem_device *nvmem, void *context)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
const char *partnum = NULL;
|
const char *partnum = NULL;
|
||||||
struct davinci_soc_info *soc_info = &davinci_soc_info;
|
|
||||||
|
|
||||||
if (!IS_BUILTIN(CONFIG_NVMEM)) {
|
if (!IS_BUILTIN(CONFIG_NVMEM)) {
|
||||||
pr_warn("Factory Config not available without CONFIG_NVMEM\n");
|
pr_warn("Factory Config not available without CONFIG_NVMEM\n");
|
||||||
|
@ -147,13 +146,6 @@ static void read_factory_config(struct nvmem_device *nvmem, void *context)
|
||||||
goto bad_config;
|
goto bad_config;
|
||||||
}
|
}
|
||||||
|
|
||||||
pr_info("Found MAC = %pM\n", factory_config.mac);
|
|
||||||
if (is_valid_ether_addr(factory_config.mac))
|
|
||||||
memcpy(soc_info->emac_pdata->mac_addr,
|
|
||||||
factory_config.mac, ETH_ALEN);
|
|
||||||
else
|
|
||||||
pr_warn("Invalid MAC found in factory config block\n");
|
|
||||||
|
|
||||||
partnum = factory_config.partnum;
|
partnum = factory_config.partnum;
|
||||||
pr_info("Part Number = %s\n", partnum);
|
pr_info("Part Number = %s\n", partnum);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче