]> git.itanic.dy.fi Git - linux-stable/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)
commit584351c31d19a1d101696f85007cd0c851ec202d
treefa8f1c67aed9eb869ed3095648c59ef54ce31d66
parent867d1ac99f11e4d03ecf00ebfe7c65baf7d3927a
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