[net-next][PATCH 0/4] davinci_emac: read the MAC address from nvmem

From: Bartosz Golaszewski
Date: Fri Nov 30 2018 - 03:21:21 EST


From: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>

This series is part of a bigger series that aims at removing the platform
data structure from the at24 EEPROM driver[1].

We provide a generalized version of of_get_nvmem_mac_address(), switch the
only user of the of_ variant to using it, remove the previous
implementation and use the new routine in the davinci_emac driver.

[1] https://lkml.org/lkml/2018/11/13/884

Bartosz Golaszewski (4):
net: ethernet: provide nvmem_get_mac_address()
net: cadence: switch to using nvmem_get_mac_address()
of: net: kill of_get_nvmem_mac_address()
net: davinci_emac: use nvmem_get_mac_address()

drivers/net/ethernet/cadence/macb_main.c | 2 +-
drivers/net/ethernet/ti/davinci_emac.c | 14 ++++++---
drivers/of/of_net.c | 39 ------------------------
include/linux/etherdevice.h | 1 +
include/linux/of_net.h | 6 ----
net/ethernet/eth.c | 38 +++++++++++++++++++++++
6 files changed, 49 insertions(+), 51 deletions(-)

--
2.19.1