]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: emac: utilize of_net's of_get_mac_address()
authorChristian Lamparter <chunkeey@gmail.com>
Sun, 26 Sep 2021 09:56:48 +0000 (11:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2021 12:28:48 +0000 (13:28 +0100)
commitafd4c33f4e23cec8dbab14bd77b6b71295a34f24
treefa8f1c67aed9eb869ed3095648c59ef54ce31d66
parent0e70f46d3fe635e7117796336baf8ead31535e78
net: ethernet: emac: utilize of_net's of_get_mac_address()

of_get_mac_address() reads the same "local-mac-address" property.
... But goes above and beyond by checking the MAC value properly.

printk+message seems outdated too,
so let's put dev_err in the queue.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/emac/core.c