Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6
[deliverable/linux.git] / arch / arm / common / locomo.c
index d31b1cb7eea0d83ed2cb632ed07b42d593aad3c7..23609400a8e2f2ca9a1253dce10ff20a1a391d1f 100644 (file)
@@ -788,6 +788,8 @@ static int locomo_probe(struct platform_device *dev)
        if (!mem)
                return -EINVAL;
        irq = platform_get_irq(dev, 0);
+       if (irq < 0)
+               return -ENXIO;
 
        return __locomo_probe(&dev->dev, mem, irq);
 }
This page took 0.024168 seconds and 5 git commands to generate.