Commit 1f43f400 authored by Murali Karicheri's avatar Murali Karicheri Committed by David S. Miller

net: netcp: Fix ethss driver probe issue

Recent commit below has introduced a bug in netcp driver that causes
the ethss driver probe failure and thus break the networking function
on K2 SoCs such as K2HK, K2L, K2E etc. This patch fixes the issue to
restore networking on the above SoCs.

Fixes: 21c328dc ("net: ethernet: Convert to using %pOFn instead of device_node.name")
Signed-off-by: default avatarMurali Karicheri <m-karicheri2@ti.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4d96e13e
...@@ -259,7 +259,7 @@ static int netcp_module_probe(struct netcp_device *netcp_device, ...@@ -259,7 +259,7 @@ static int netcp_module_probe(struct netcp_device *netcp_device,
const char *name; const char *name;
char node_name[32]; char node_name[32];
if (of_property_read_string(node, "label", &name) < 0) { if (of_property_read_string(child, "label", &name) < 0) {
snprintf(node_name, sizeof(node_name), "%pOFn", child); snprintf(node_name, sizeof(node_name), "%pOFn", child);
name = node_name; name = node_name;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment