[ACPI] PNPACPI driver now checks for acpi_register_gsi() errors

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
Kenji Kaneshige 2005-07-28 14:42:00 -04:00 committed by Len Brown
parent a9bd53bc49
commit 71df30f8e3

View file

@ -81,7 +81,7 @@ pnpacpi_parse_allocated_irqresource(struct pnp_resource_table * res, int irq)
i++;
if (i < PNP_MAX_IRQ) {
res->irq_resource[i].flags = IORESOURCE_IRQ; //Also clears _UNSET flag
if (irq == -1) {
if (irq < 0) {
res->irq_resource[i].flags |= IORESOURCE_DISABLED;
return;
}