Hi Simon, On Thu, Oct 11, 2018 at 10:01 AM Simon Glass <s...@chromium.org> wrote: > > On 7 October 2018 at 04:01, Bin Meng <bmeng...@gmail.com> wrote: > > This adds a new API dm_ofnode_pre_reloc(), a livetree equivalent > > API of dm_fdt_pre_reloc(). > > > > Signed-off-by: Bin Meng <bmeng...@gmail.com> > > --- > > > > Changes in v2: None > > > > drivers/core/util.c | 25 +++++++++++++++++++++++++ > > include/dm/util.h | 27 ++++++++++++++++++++++++++- > > 2 files changed, 51 insertions(+), 1 deletion(-) > > Reviewed-by: Simon Glass <s...@chromium.org> > > I wonder if it is possible to delete the old code that doesn't support > livetree? This implementation should support both.
Agreed. But there are two drivers (drivers/clk/at91/pmc.c and drivers/clk/altera/clk-arria10.c) that calls dm_fdt_pre_reloc() at this point. We can clean this up in the future. Regards, Bin _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot