intel-iommu: Don't complain that ACPI_DMAR_SCOPE_TYPE_IOAPIC is not supported
authorYinghai Lu <yinghai@kernel.org>
Thu, 8 Apr 2010 18:58:22 +0000 (19:58 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 9 Apr 2010 15:32:18 +0000 (16:32 +0100)
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/dmar.c

index ffe22bc3ac8eda872625bd178370c0e98de83fff..a04bde9bd10fec6f22c8bcdb943607f1e5472b95 100644 (file)
@@ -130,9 +130,10 @@ static int __init dmar_parse_dev_scope(void *start, void *end, int *cnt,
                if (scope->entry_type == ACPI_DMAR_SCOPE_TYPE_ENDPOINT ||
                    scope->entry_type == ACPI_DMAR_SCOPE_TYPE_BRIDGE)
                        (*cnt)++;
-               else
+               else if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_IOAPIC) {
                        printk(KERN_WARNING PREFIX
-                               "Unsupported device scope\n");
+                              "Unsupported device scope\n");
+               }
                start += scope->length;
        }
        if (*cnt == 0)