Skip to content

Commit ea168cd

Browse files
ynezzdavem330
authored andcommitted
powerpc: tsi108: 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. Signed-off-by: Petr Štetiar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c41593a commit ea168cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/sysdev/tsi108_dev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static int __init tsi108_eth_of_init(void)
105105
}
106106

107107
mac_addr = of_get_mac_address(np);
108-
if (mac_addr)
108+
if (!IS_ERR(mac_addr))
109109
memcpy(tsi_eth_data.mac_addr, mac_addr, 6);
110110

111111
ph = of_get_property(np, "mdio-handle", NULL);

0 commit comments

Comments
 (0)