]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6c80b3f55a8a51275995b639b815ebabcb0e59da
tree99163f3f9ccefdfaf02e796a003a3cc3ca53baa2
parent08739a1555a19236f0473e052c8f460767fb6fd2
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