diff options
Diffstat (limited to 'source/compiler/dtcompile.c')
-rw-r--r-- | source/compiler/dtcompile.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/compiler/dtcompile.c b/source/compiler/dtcompile.c index 2b92322..41e0fc4 100644 --- a/source/compiler/dtcompile.c +++ b/source/compiler/dtcompile.c @@ -446,6 +446,15 @@ DtCompileTable ( return (AE_BAD_PARAMETER); } + /* Ignore optional subtable if name does not match */ + + if ((Info->Flags & DT_OPTIONAL) && + ACPI_STRCMP ((*Field)->Name, Info->Name)) + { + *RetSubtable = NULL; + return (AE_OK); + } + Length = DtGetSubtableLength (*Field, Info); if (Length == ASL_EOF) { |