]> git.baikalelectronics.ru Git - kernel.git/commit
net: davinci_emac: use nvmem_get_mac_address()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 30 Nov 2018 08:21:00 +0000 (09:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Dec 2018 23:40:30 +0000 (15:40 -0800)
commit5f30bdb3722c27a9193656768a391194eb031162
tree83b758a883bbc0a8866e1647c7a27c676c54d64a
parente59a02715c1fa5360393bcc694c2c8db516d8ed0
net: davinci_emac: use nvmem_get_mac_address()

All DaVinci boards still supported in board files now define nvmem
cells containing the MAC address. We want to stop using the setup
callback from at24 so the MAC address for those users will no longer
be provided over platform data. If we didn't get a valid MAC in pdata,
try nvmem before resorting to a random MAC.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_emac.c