of/fdt: Rework early_init_dt_scan_memory() to call directly
authorRob Herring <robh@kernel.org>
Wed, 15 Dec 2021 15:01:02 +0000 (09:01 -0600)
committerRob Herring <robh@kernel.org>
Thu, 16 Dec 2021 22:07:52 +0000 (16:07 -0600)
commit1f012283e9360fb4007308f04cfaeb205e34b684
tree878e31ea523e13dd3442d40dae9318b80d6b9d11
parentd665881d2171b62ca1ea23be89be6f2a8a330bb2
of/fdt: Rework early_init_dt_scan_memory() to call directly

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@phrozen.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: linux-mips@vger.kernel.org
Cc: linuxppc-dev@lists.ozlabs.org
Reviewed-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Tested-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211215150102.1303588-1-robh@kernel.org
arch/mips/ralink/of.c
arch/powerpc/kernel/prom.c
drivers/of/fdt.c
include/linux/of_fdt.h