mt76: check of_get_mac_address for NULL as well to restore old kernel compat

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2019-08-12 20:26:55 +02:00
parent 76aada563b
commit 3245ca8b8a
+1 -1
View File
@@ -86,7 +86,7 @@ mt76_eeprom_override(struct mt76_dev *dev)
return;
mac = of_get_mac_address(np);
if (!IS_ERR(mac))
if (!IS_ERR_OR_NULL(mac))
memcpy(dev->macaddr, mac, ETH_ALEN);
#endif