summaryrefslogtreecommitdiffstats
path: root/drivers/of/of_private.h
diff options
context:
space:
mode:
authorFrank Rowand <frank.rowand@sony.com>2018-02-26 14:01:23 -0800
committerRob Herring <robh@kernel.org>2018-03-05 15:38:34 -0600
commitb89dae1852869d6bb3e4a8e3c6bdaf86dc2ef9da (patch)
tree8db8ad347a29d52690365fd35924d3e11233c9e4 /drivers/of/of_private.h
parenta4f91f0de905dd6f91ab12dd8bfda10317fa43eb (diff)
downloadtalos-obmc-linux-b89dae1852869d6bb3e4a8e3c6bdaf86dc2ef9da.tar.gz
talos-obmc-linux-b89dae1852869d6bb3e4a8e3c6bdaf86dc2ef9da.zip
of: overlay: do not include path in full_name of added nodes
Struct device_node full_name no longer includes the full path name when the devicetree is created from a flattened device tree (FDT). The overlay node creation code was not modified to reflect this change. Fix the node full_name generated by overlay code to contain only the basename. Unittests call an overlay internal function to create new nodes. Fix up these calls to provide basename only instead of the full path. Fixes: a7e4cfb0a7ca ("of/fdt: only store the device node basename in full_name") Signed-off-by: Frank Rowand <frank.rowand@sony.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/of_private.h')
-rw-r--r--drivers/of/of_private.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/of/of_private.h b/drivers/of/of_private.h
index 0c609e7d0334..26bb31beb03e 100644
--- a/drivers/of/of_private.h
+++ b/drivers/of/of_private.h
@@ -104,7 +104,8 @@ extern void *__unflatten_device_tree(const void *blob,
* own the devtree lock or work on detached trees only.
*/
struct property *__of_prop_dup(const struct property *prop, gfp_t allocflags);
-__printf(2, 3) struct device_node *__of_node_dup(const struct device_node *np, const char *fmt, ...);
+struct device_node *__of_node_dup(const struct device_node *np,
+ const char *full_name);
struct device_node *__of_find_node_by_path(struct device_node *parent,
const char *path);
OpenPOWER on IntegriCloud