diff options
Diffstat (limited to 'drivers/core/ofnode.c')
-rw-r--r-- | drivers/core/ofnode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index 14bbfe7232..4d56b1a767 100644 --- a/drivers/core/ofnode.c +++ b/drivers/core/ofnode.c @@ -1197,12 +1197,12 @@ int ofnode_read_eth_phy_id(ofnode node, u16 *vendor, u16 *device) while (list < end) { len = strlen(list); - if (len >= strlen("ethernet-phy-idVVVV,DDDD")) { + if (len >= strlen("ethernet-phy-idVVVV.DDDD")) { char *s = strstr(list, "ethernet-phy-id"); /* * check if the string is something like - * ethernet-phy-idVVVV,DDDD + * ethernet-phy-idVVVV.DDDD */ if (s && s[19] == '.') { s += strlen("ethernet-phy-id"); |