Rob Herring <robh@xxxxxxxxxx> writes: > Use of the of_scan_flat_dt() function predates libfdt and is discouraged > as libfdt provides a nicer set of APIs. Rework > early_init_dt_scan_memory() to be called directly and use libfdt. > > Cc: John Crispin <john@xxxxxxxxxxx> > Cc: Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx> > Cc: Michael Ellerman <mpe@xxxxxxxxxxxxxx> > Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> > Cc: Paul Mackerras <paulus@xxxxxxxxx> > Cc: Frank Rowand <frowand.list@xxxxxxxxx> > Cc: linux-mips@xxxxxxxxxxxxxxx > Cc: linuxppc-dev@xxxxxxxxxxxxxxxx > Signed-off-by: Rob Herring <robh@xxxxxxxxxx> > Reviewed-by: Frank Rowand <frank.rowand@xxxxxxxx> > Link: https://lore.kernel.org/r/20211208155839.4084795-1-robh@xxxxxxxxxx > Signed-off-by: Rob Herring <robh@xxxxxxxxxx> > --- > v4: > - Revert the changes to search for memory nodes at any level which were > accidentally committed. Sorry for the mix up, this version works for me. Tested-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx> cheers