summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSourabh Jain <sourabhjain@linux.ibm.com>2026-04-18 14:42:50 +0530
committerMadhavan Srinivasan <maddy@linux.ibm.com>2026-09-10 13:17:53 +0530
commit15f3ce3aa218f6d4cece9101f1af4332e8712e39 (patch)
tree0ecb3eab55c6e5560caf7787b6e7e23b7140923f
parentbf1d8287816194457c1a936056ad2d1e1e478944 (diff)
downloadlinux-next-15f3ce3aa218f6d4cece9101f1af4332e8712e39.tar.gz
linux-next-15f3ce3aa218f6d4cece9101f1af4332e8712e39.zip
powerpc/prom: Remove redundant early_init_dt_scan_root() call
Commit 554b66233623 ("of/fdt: Scan the root node properties earlier") moved the invocation of early_init_dt_scan_root() into early_init_dt_verify(). early_init_devtree() already calls early_init_dt_verify(), so the root node properties are parsed before reaching the explicit call in this function. Keeping the call here results in scanning the root node twice. Remove the redundant call and rely on the invocation from early_init_dt_verify(). This change keeps the behavior the same and removes an unnecessary duplicate call. Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com> Tested-by: Shivang Upadhyay <shivangu@linux.ibm.com> Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20260418091250.134111-1-sourabhjain@linux.ibm.com
-rw-r--r--arch/powerpc/kernel/prom.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index 9ed9dde7d231..d218c8cc1f73 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -824,7 +824,6 @@ void __init early_init_devtree(void *params)
fadump_append_bootargs();
/* Scan memory nodes and rebuild MEMBLOCKs */
- early_init_dt_scan_root();
early_init_dt_scan_memory_ppc();
/*