]> 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)
commitb2e6bd50a02d979c47b5ddc94e4ef983832c2370
treefa8f1c67aed9eb869ed3095648c59ef54ce31d66
parenta2d7306142134166daee578f392c242b98272f48
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