]> err.no Git - linux-2.6/commitdiff
[ACPI] PNPACPI driver now checks for acpi_register_gsi() errors
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Thu, 28 Jul 2005 18:42:00 +0000 (14:42 -0400)
committerLen Brown <len.brown@intel.com>
Fri, 5 Aug 2005 02:20:13 +0000 (22:20 -0400)
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>
drivers/pnp/pnpacpi/rsparser.c

index 75575f6c349c65919871f32afe3dc8e83fbc3219..1e296cbef00497b16816a6f19435666cebc60005 100644 (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;
                }