net: macb: Try to retrieve MAC addess from nvmem provider
authorMike Looijmans <mike.looijmans@topic.nl>
Thu, 29 Mar 2018 05:29:49 +0000 (07:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Mar 2018 14:40:18 +0000 (10:40 -0400)
commitaa076e3d220a7d2e71ef0f5213bdbbcc7e351b86
treeaa8828a2e9f4807236056d98097c89e6c075a307
parent9217e566bdee4583d0a9ea4879c8f5e004886eac
net: macb: Try to retrieve MAC addess from nvmem provider

Call of_get_nvmem_mac_address() to fetch the MAC address from an nvmem
cell, if one is provided in the device tree. This allows the address to
be stored in an I2C EEPROM device for example.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_main.c