]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita686dac232b97af52e49cc740fee987427ed2c90
tree2272fd252224c903aafb4cab1e3a5e90853063be
parentb574f1b86782cd0b1cda83a7816163d397f56f43
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