]> git.baikalelectronics.ru Git - kernel.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)
commitd104bd75d249006eba991105e81de4743735786f
tree2222d5f1d6162367723975da0b8b0ff9cafe1bf9
parente7ef3bfade8d6ca6efec8984fd1d1aec08aa7d72
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