net: cadence: switch to using nvmem_get_mac_address()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 30 Nov 2018 08:20:58 +0000 (09:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Dec 2018 23:40:30 +0000 (15:40 -0800)
commitcce41b8ffa4b3978dfbcbf3fd2e7397253346245
treedfa2d32eccb9b10e71a2073afb9a25563db35df4
parent0e839df92cf37be4adef7e661813206cd2b32d66
net: cadence: switch to using nvmem_get_mac_address()

We now have a generalized helper routine to read the MAC address from
nvmem which takes struct device as argument. The nvmem subsystem will
then try device tree first before all other potential providers.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_main.c