net: wireless: support of_get_mac_address new ERR_PTR error

commit d31a36b5f407d796d121af745730712337cd32a1 upstream.

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.

Signed-off-by: Petr Štetiar <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Petr Štetiar
2019-07-22 22:27:46 +02:00
parent 3d7f7384be
commit 75656a4590
+1 -1
View File
@@ -86,7 +86,7 @@ mt76_eeprom_override(struct mt76_dev *dev)
return;
mac = of_get_mac_address(np);
if (mac)
if (!IS_ERR(mac))
memcpy(dev->macaddr, mac, ETH_ALEN);
#endif