From: Michal Simek Date: Wed, 21 Dec 2011 12:28:23 +0000 (+0100) Subject: input: xilinx_ps2: Don't use NO_IRQ X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=be3bad6f5eb7205753e0134aeb422c4d9c1d8838;p=linux-beck.git input: xilinx_ps2: Don't use NO_IRQ Drivers shouldn't use NO_IRQ. Microblaze and PPC define NO_IRQ as 0 and this reference will be removed in near future. Signed-off-by: Michal Simek Reviewed-by: Ryan Mallon Acked-by: Grant Likely CC: Rob Herring --- 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) } /* 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"); return -ENODEV; }