[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1519611750-22355-5-git-send-email-frowand.list@gmail.com>
Date: Sun, 25 Feb 2018 18:22:28 -0800
From: frowand.list@...il.com
To: Rob Herring <robh+dt@...nel.org>, pantelis.antoniou@...sulko.com,
Pantelis Antoniou <panto@...oniou-consulting.com>
Cc: devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
geert@...ux-m68k.org
Subject: [PATCH 4/6] of: remove kbasename(of->full_name) from kobj.c
From: Frank Rowand <frank.rowand@...y.com>
struct device_node full_name has been changed to include the
basename instead of the full path. kbasename() is no longer
needed to extract the basename from full_name.
Signed-off-by: Frank Rowand <frank.rowand@...y.com>
---
drivers/of/kobj.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/of/kobj.c b/drivers/of/kobj.c
index 7a0a18980b98..b0aecea35706 100644
--- a/drivers/of/kobj.c
+++ b/drivers/of/kobj.c
@@ -128,7 +128,7 @@ int __of_attach_node_sysfs(struct device_node *np)
name = safe_name(&of_kset->kobj, "base");
parent = NULL;
} else {
- name = safe_name(&np->parent->kobj, kbasename(np->full_name));
+ name = safe_name(&np->parent->kobj, np->full_name);
parent = &np->parent->kobj;
}
if (!name)
--
Frank Rowand <frank.rowand@...y.com>
Powered by blists - more mailing lists