]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbf95f8ea032406b232b8e458ab22095ca29bfd75
tree8db8ad347a29d52690365fd35924d3e11233c9e4
parent1f716f0a92ad56f19983c021cb6489bb03341036
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: 696e543ff5d3 ("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