aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ti/netcp_core.c
diff options
context:
space:
mode:
authorMurali Karicheri <m-karicheri2@ti.com>2019-02-18 15:10:51 -0500
committerDavid S. Miller <davem@davemloft.net>2019-02-18 17:49:24 -0800
commit1f43f400a2cbb02f3d34de8fe30075c070254816 (patch)
tree51242a6615795e24aeb821d59f19d3ce561fa15d /drivers/net/ethernet/ti/netcp_core.c
parentnet: hns: Fixes the missing put_device in positive leg for roce reset (diff)
downloadlinux-dev-1f43f400a2cbb02f3d34de8fe30075c070254816.tar.xz
linux-dev-1f43f400a2cbb02f3d34de8fe30075c070254816.zip
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: 21c328dcecfc ("net: ethernet: Convert to using %pOFn instead of device_node.name") Signed-off-by: Murali Karicheri <m-karicheri2@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/netcp_core.c')
-rw-r--r--drivers/net/ethernet/ti/netcp_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/netcp_core.c b/drivers/net/ethernet/ti/netcp_core.c
index 1f612268c998..d847f672a705 100644
--- a/drivers/net/ethernet/ti/netcp_core.c
+++ b/drivers/net/ethernet/ti/netcp_core.c
@@ -259,7 +259,7 @@ static int netcp_module_probe(struct netcp_device *netcp_device,
const char *name;
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);
name = node_name;
}