提交 d4ec6c7c 编写于 作者: L Len Brown

[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: NLen Brown <len.brown@intel.com>
上级 4a90c7e8
...@@ -233,8 +233,10 @@ acpi_pci_link_check_current(struct acpi_resource *resource, void *context) ...@@ -233,8 +233,10 @@ acpi_pci_link_check_current(struct acpi_resource *resource, void *context)
*irq = p->interrupts[0]; *irq = p->interrupts[0];
break; break;
} }
break;
default: 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_OK);
} }
return_ACPI_STATUS(AE_CTRL_TERMINATE); return_ACPI_STATUS(AE_CTRL_TERMINATE);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册