[PATCH] asic3: platform_get_irq() may return signed unnoticed

Roel Kluin
2008-04-23T21:33:09Z

index f6f2d96..95f7b0c 100644
--- a/drivers/mfd/asic3.c
+++ b/drivers/mfd/asic3.c
@@ -302,7 +302,7 @@ static int asic3_irq_probe(struct platform_device *pdev)
unsigned int irq, irq_base;

asic->irq_nr = platform_get_irq(pdev, 0);
- if (asic->irq_nr < 0)
+ if (asic->irq_nr == -ENXIO)
return asic->irq_nr;