[PATCH 6/6] of: remove kbasename(of->full_name) from platform.c

From: frowand . list
Date: Sun Feb 25 2018 - 21:24:17 EST


From: Frank Rowand <frank.rowand@xxxxxxxx>

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@xxxxxxxx>
---
drivers/of/platform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/of/platform.c b/drivers/of/platform.c
index c00d81dfac0b..17116f5ce6ba 100644
--- a/drivers/of/platform.c
+++ b/drivers/of/platform.c
@@ -94,7 +94,7 @@ static void of_device_make_bus_id(struct device *dev)

/* format arguments only used if dev_name() resolves to NULL */
dev_set_name(dev, dev_name(dev) ? "%s:%s" : "%s",
- kbasename(node->full_name), dev_name(dev));
+ node->full_name, dev_name(dev));
node = node->parent;
}
}
--
Frank Rowand <frank.rowand@xxxxxxxx>