|
@@ -253,7 +253,7 @@ static int __devinit xps2_of_probe(struct platform_device *ofdev)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/* Get IRQ for the device */
|
|
/* Get IRQ for the device */
|
|
|
- if (of_irq_to_resource(ofdev->dev.of_node, 0, &r_irq) == NO_IRQ) {
|
|
|
|
|
|
|
+ if (!of_irq_to_resource(ofdev->dev.of_node, 0, &r_irq)) {
|
|
|
dev_err(dev, "no IRQ found\n");
|
|
dev_err(dev, "no IRQ found\n");
|
|
|
return -ENODEV;
|
|
return -ENODEV;
|
|
|
}
|
|
}
|