ARM: dts: realview-pbx: Fix duplicate regulator nodes
authorRob Herring <robh@kernel.org>
Fri, 30 Nov 2018 01:05:47 +0000 (19:05 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Dec 2019 09:41:15 +0000 (10:41 +0100)
commit9e086e8843f7bc3de5dcd30137cfa54155cd3958
treefa961d5d7e9b789a5b9f9593ac0750ab438dc97b
parenta6690db2ac70ece57cceab1c67c4bc839c102456
ARM: dts: realview-pbx: Fix duplicate regulator nodes

[ Upstream commit 7f4b001b7f6e0480b5bdab9cd8ce1711e43e5cb5 ]

There's a bug in dtc in checking for duplicate node names when there's
another section (e.g. "/ { };"). In this case, skeleton.dtsi provides
another section. Upon removal of skeleton.dtsi, the dtb fails to build
due to a duplicate node 'fixedregulator@0'. As both nodes were pretty
much the same 3.3V fixed regulator, it hasn't really mattered. Fix this
by renaming the nodes to something unique. In the process, drop the
unit-address which shouldn't be present wtihout reg property.

Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/boot/dts/arm-realview-pbx.dtsi