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; }