[ACPI] remove "Resource isn't an IRQ" warning
authorLen Brown <len.brown@intel.com>
Thu, 26 Jan 2006 22:23:38 +0000 (17:23 -0500)
committerLen Brown <len.brown@intel.com>
Thu, 26 Jan 2006 22:23:38 +0000 (17:23 -0500)
In the case where a (broken) BIOS gives  us a blank _CRS for
a PCI Interrupt Link Device, the acpi_walk_resources()
will not terminate, but will then give the callback
the resource end tag.  Ignore the end tag.

Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/pci_link.c

index 1ffc771153679c2dbd247d124b2a2d9ef71a7723..07bc6dfe662b34aeb4c83d7476d6cee31c10c70a 100644 (file)
@@ -233,8 +233,10 @@ acpi_pci_link_check_current(struct acpi_resource *resource, void *context)
                        *irq = p->interrupts[0];
                        break;
                }
+               break;
        default:
-               ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Resource isn't an IRQ\n"));
+               ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Resource %d isn't an IRQ\n", resource->type));
+       case ACPI_RESOURCE_TYPE_END_TAG:
                return_ACPI_STATUS(AE_OK);
        }
        return_ACPI_STATUS(AE_CTRL_TERMINATE);