From 1dcf325844df54a3a2d274f37dea8dd676391eed Mon Sep 17 00:00:00 2001 From: Rom Lemarchand Date: Sun, 8 Nov 2015 17:51:50 -0800 Subject: [PATCH] init: skip "name" DT entry DTs have a standard "name" entry which is not to be turned into an android property, so skip it. Change-Id: I79f6638b4123358c8d80510c1666cf5d4561160e --- init/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/init.cpp b/init/init.cpp index a898b03e3..605674b15 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -386,7 +386,7 @@ static void process_kernel_dt() { struct dirent *dp; while ((dp = readdir(dir.get())) != NULL) { - if (dp->d_type != DT_REG || !strcmp(dp->d_name, "compatible")) { + if (dp->d_type != DT_REG || !strcmp(dp->d_name, "compatible") || !strcmp(dp->d_name, "name")) { continue; }