aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/input/serio/xilinx_ps2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/serio/xilinx_ps2.c b/drivers/input/serio/xilinx_ps2.c
index d64c5a43aaad..f3e54b9a4a46 100644
--- a/drivers/input/serio/xilinx_ps2.c
+++ b/drivers/input/serio/xilinx_ps2.c
@@ -253,7 +253,7 @@ static int __devinit xps2_of_probe(struct platform_device *ofdev)
253 } 253 }
254 254
255 /* Get IRQ for the device */ 255 /* Get IRQ for the device */
256 if (of_irq_to_resource(ofdev->dev.of_node, 0, &r_irq) == NO_IRQ) { 256 if (!of_irq_to_resource(ofdev->dev.of_node, 0, &r_irq)) {
257 dev_err(dev, "no IRQ found\n"); 257 dev_err(dev, "no IRQ found\n");
258 return -ENODEV; 258 return -ENODEV;
259 } 259 }