[ACPI] HPET 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 349f0d5640
commit a9bd53bc49
1 changed files with 6 additions and 2 deletions

View File

@ -906,11 +906,15 @@ static acpi_status hpet_resources(struct acpi_resource *res, void *data)
if (irqp->number_of_interrupts > 0) {
hdp->hd_nirqs = irqp->number_of_interrupts;
for (i = 0; i < hdp->hd_nirqs; i++)
hdp->hd_irq[i] =
for (i = 0; i < hdp->hd_nirqs; i++) {
int rc =
acpi_register_gsi(irqp->interrupts[i],
irqp->edge_level,
irqp->active_high_low);
if (rc < 0)
return AE_ERROR;
hdp->hd_irq[i] = rc;
}
}
}