arm64: Simplify checking for populated DT
authorRob Herring <robh@kernel.org>
Fri, 29 Oct 2021 14:40:55 +0000 (09:40 -0500)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 6 Dec 2021 16:12:53 +0000 (16:12 +0000)
commitb6363fe7b5135bfb5aea03f414148b3c2417702e
tree99163f3f9ccefdfaf02e796a003a3cc3ca53baa2
parentd658220a1c45cb721a80a9af7d1d70b35c7b74ea
arm64: Simplify checking for populated DT

Use of the of_scan_flat_dt() function predates libfdt and is discouraged
as libfdt provides a nicer set of APIs. Rework dt_scan_depth1_nodes to
use libfdt calls directly, and rename it to dt_is_stub() to reflect
exactly what it checking.

Cc: Will Deacon <will@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20211029144055.2365814-1-robh@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/acpi.c