]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: ethoc: Utilize of_get_mac_address()
authorFlorian Fainelli <f.fainelli@gmail.com>
Sun, 4 Dec 2016 20:40:29 +0000 (12:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Dec 2016 20:30:03 +0000 (15:30 -0500)
commitb34296a9c047504e2020fb4ce2f66f57bd5454a8
tree2222d5f1d6162367723975da0b8b0ff9cafe1bf9
parentabf7e53e9e6bbd2aa23a6d46bd74cb5dc1b7f564
net: ethoc: Utilize of_get_mac_address()

Do not open code getting the MAC address exclusively from the
"local-mac-address" property, but instead use of_get_mac_address() which
looks up the MAC address using the 3 typical property names.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ethoc.c