diff options
author | Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> | 2005-07-28 14:42:00 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-08-04 22:16:45 -0400 |
commit | a9bd53bc49ee8984633e57c1d9d45111c58e9457 (patch) | |
tree | f822a6848c91afc289e207d47b224cccf90dbcbe /drivers/char/hpet.c | |
parent | 349f0d5640c18db09a646f9da51a97f1da908660 (diff) |
[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>
Diffstat (limited to 'drivers/char/hpet.c')
-rw-r--r-- | drivers/char/hpet.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index 5ec732e6ca92..a8d4c47f7add 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) | |||
906 | if (irqp->number_of_interrupts > 0) { | 906 | if (irqp->number_of_interrupts > 0) { |
907 | hdp->hd_nirqs = irqp->number_of_interrupts; | 907 | hdp->hd_nirqs = irqp->number_of_interrupts; |
908 | 908 | ||
909 | for (i = 0; i < hdp->hd_nirqs; i++) | 909 | for (i = 0; i < hdp->hd_nirqs; i++) { |
910 | hdp->hd_irq[i] = | 910 | int rc = |
911 | acpi_register_gsi(irqp->interrupts[i], | 911 | acpi_register_gsi(irqp->interrupts[i], |
912 | irqp->edge_level, | 912 | irqp->edge_level, |
913 | irqp->active_high_low); | 913 | irqp->active_high_low); |
914 | if (rc < 0) | ||
915 | return AE_ERROR; | ||
916 | hdp->hd_irq[i] = rc; | ||
917 | } | ||
914 | } | 918 | } |
915 | } | 919 | } |
916 | 920 | ||