dm: core: remove the duplicated function dm_ofnode_pre_reloc
authorPatrick Delaunay <patrick.delaunay@st.com>
Fri, 3 Apr 2020 09:39:18 +0000 (11:39 +0200)
committerSimon Glass <sjg@chromium.org>
Thu, 16 Apr 2020 14:07:58 +0000 (08:07 -0600)
commit5c9c9bc9571f23d4c8bab18fc50fc1238da0c6c1
tree5fb48726e157dd209562f986f47f139b7cc7ab9b
parent59006608d65b242b19176f1a1fdeeb99391654d2
dm: core: remove the duplicated function dm_ofnode_pre_reloc

The content dm_ofnode_pre_reloc() is identical with ofnode_pre_reloc()
defined in drivers/core/ofnode.c and used only three times:
- drivers/core/lists.c:lists_bind_fdt()
- drivers/clk/at91/pmc.c::at91_clk_sub_device_bind
- drivers/clk/altera/clk-arria10.c::socfpga_a10_clk_bind

So this function dm_ofnode_pre_reloc can be removed and replaced
by these function calls by ofnode_pre_reloc().

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/clk/altera/clk-arria10.c
drivers/clk/at91/pmc.c
drivers/core/lists.c
drivers/core/util.c
include/dm/util.h