of/fdt: Rework early_init_dt_scan_chosen() to call directly
authorRob Herring <robh@kernel.org>
Thu, 18 Nov 2021 18:12:10 +0000 (12:12 -0600)
committerRob Herring <robh@kernel.org>
Thu, 16 Dec 2021 22:07:41 +0000 (16:07 -0600)
commit60f20d84dc813f1342771a3e4f06d89da26dc412
treeba9469491c359c9b36c7fe35289cff156138bc13
parent9fd4cf5d3571b27d746b8ead494a3f051485b679
of/fdt: Rework early_init_dt_scan_chosen() 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_chosen() 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-2-robh@kernel.org
arch/powerpc/kernel/prom.c
arch/powerpc/mm/nohash/kaslr_booke.c
drivers/of/fdt.c
include/linux/of_fdt.h