[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1519611750-22355-4-git-send-email-frowand.list@gmail.com>
Date: Sun, 25 Feb 2018 18:22:27 -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 3/6] of: remove kbasename(of->full_name) from base.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/base.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/of/base.c b/drivers/of/base.c
index ad28de96e13f..926d08b8674d 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -691,8 +691,8 @@ struct device_node *__of_find_node_by_path(struct device_node *parent,
return NULL;
__for_each_child_of_node(parent, child) {
- const char *name = kbasename(child->full_name);
- if (strncmp(path, name, len) == 0 && (strlen(name) == len))
+ if (strncmp(path, child->full_name, len) == 0 &&
+ (strlen(child->full_name) == len))
return child;
}
return NULL;
--
Frank Rowand <frank.rowand@...y.com>
Powered by blists - more mailing lists