]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: support of_get_mac_address new ERR_PTR error
authorPetr Štetiar <ynezz@true.cz>
Mon, 6 May 2019 21:24:45 +0000 (23:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 May 2019 19:22:47 +0000 (12:22 -0700)
commita7f8c1d8732c2ee0bf12e4b441d6acf4297903bb
treef464689350d2aaa95f9c9cdba9ee4904c43570f1
parent94ec6b5c9ca9cefcb70f525a00569db2252aec32
net: dsa: support of_get_mac_address new ERR_PTR error

There was NVMEM support added to of_get_mac_address, so it could now
return ERR_PTR encoded error values, so we need to adjust all current
users of of_get_mac_address to this new fact.

While at it, remove superfluous is_valid_ether_addr as the MAC address
returned from of_get_mac_address is always valid and checked by
is_valid_ether_addr anyway.

Fixes: fe45bccd460e ("of_net: add NVMEM support to of_get_mac_address")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Tested-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c