From: Len Brown Date: Thu, 26 Jan 2006 22:23:38 +0000 (-0500) Subject: [ACPI] remove "Resource isn't an IRQ" warning X-Git-Tag: v2.6.16-rc2~1^2~8^2~2 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=d4ec6c7cc9a15a7a529719bc3b84f46812f9842e;p=powerpc.git [ACPI] remove "Resource isn't an IRQ" warning 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 --- diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c index 1ffc771153..07bc6dfe66 100644 --- a/drivers/acpi/pci_link.c +++ b/drivers/acpi/pci_link.c @@ -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);