diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2019-01-08 10:15:29 +0100 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2019-01-10 09:27:58 +0100 |
commit | 5e4ac9274b0b4e5026e3b8fa3e90ad25e41d487e (patch) | |
tree | 0a74ff6e8247d5941d01ced2865b0382fa0eb070 /arch/arm/mach-davinci/board-mityomapl138.c | |
parent | ARM: davinci: da850-evm: remove dead MTD code (diff) | |
download | linux-5e4ac9274b0b4e5026e3b8fa3e90ad25e41d487e.tar.xz linux-5e4ac9274b0b4e5026e3b8fa3e90ad25e41d487e.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | arch/arm/mach-davinci/board-mityomapl138.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/arm/mach-davinci/board-mityomapl138.c b/arch/arm/mach-davinci/board-mityomapl138.c index 8df16e81b69e..3286dc2457a5 100644 --- a/arch/arm/mach-davinci/board-mityomapl138.c +++ b/arch/arm/mach-davinci/board-mityomapl138.c @@ -121,7 +121,6 @@ static void read_factory_config(struct nvmem_device *nvmem, void *context) { int ret; const char *partnum = NULL; - struct davinci_soc_info *soc_info = &davinci_soc_info; if (!IS_BUILTIN(CONFIG_NVMEM)) { 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; } - 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; pr_info("Part Number = %s\n", partnum); |