From: Kenji Kaneshige Date: Thu, 28 Jul 2005 18:42:00 +0000 (-0400) Subject: [ACPI] HPET driver now checks for acpi_register_gsi() errors X-Git-Tag: v2.6.14-rc1~256^2~14^2~40^2~8 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9bd53bc49ee8984633e57c1d9d45111c58e9457;p=linux-2.6 [ACPI] HPET driver now checks for acpi_register_gsi() errors Signed-off-by: Kenji Kaneshige Signed-off-by: Andrew Morton Signed-off-by: Len Brown --- diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index 5ec732e6ca..a8d4c47f7a 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c @@ -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; + } } }