]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit814fbc85becb63b8dfd18e4694dd689c6ad8d6db
treedfa2d32eccb9b10e71a2073afb9a25563db35df4
parentfbb4bb1591be8fed6e66b271dde9e6f2ab6ce8fa
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