]> git.baikalelectronics.ru Git - kernel.git/commit
net: ll_temac: Utilize of_get_mac_address()
authorTobias Klauser <tklauser@distanz.ch>
Wed, 7 Dec 2016 12:25:29 +0000 (13:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Dec 2016 16:34:03 +0000 (11:34 -0500)
commitbcb4ef42b430f606f52fd0bfc946bbb1ad9e0ebb
tree64450881b031dc1609b0343e6532fa1e28d2d132
parent4cfb07053caeede64aa05202df9527873aa8bfe8
net: ll_temac: 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.

Also avoid casting away the const qualifier of the return value by
making temac_init_mac_address() take a const void* address.

Follows commit 2ba35fc3fec5 ("net: ethoc: Utilize
of_get_mac_address()").

Cc: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/ll_temac_main.c