of/fdt: Rework early_init_dt_scan_root() to call directly
authorRob Herring <robh@kernel.org>
Thu, 18 Nov 2021 18:12:11 +0000 (12:12 -0600)
committerRob Herring <robh@kernel.org>
Thu, 16 Dec 2021 22:07:48 +0000 (16:07 -0600)
commitd665881d2171b62ca1ea23be89be6f2a8a330bb2
tree2272fd252224c903aafb4cab1e3a5e90853063be
parent60f20d84dc813f1342771a3e4f06d89da26dc412
of/fdt: Rework early_init_dt_scan_root() 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_root()
to be called directly and use libfdt.

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: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Frank Rowand <frank.rowand@sony.com>
Link: https://lore.kernel.org/r/20211118181213.1433346-3-robh@kernel.org
arch/powerpc/kernel/prom.c
drivers/of/fdt.c
include/linux/of_fdt.h