of: overlay: do not include path in full_name of added nodes
authorFrank Rowand <frank.rowand@sony.com>
Mon, 26 Feb 2018 22:01:23 +0000 (14:01 -0800)
committerRob Herring <robh@kernel.org>
Mon, 5 Mar 2018 21:38:34 +0000 (15:38 -0600)
commitb89dae1852869d6bb3e4a8e3c6bdaf86dc2ef9da
tree8db8ad347a29d52690365fd35924d3e11233c9e4
parenta4f91f0de905dd6f91ab12dd8bfda10317fa43eb
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>
drivers/of/dynamic.c
drivers/of/of_private.h
drivers/of/overlay.c
drivers/of/unittest.c