]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
input: xilinx_ps2: Don't use NO_IRQ
authorMichal Simek <monstr@monstr.eu>
Wed, 21 Dec 2011 12:28:23 +0000 (13:28 +0100)
committerMichal Simek <monstr@monstr.eu>
Thu, 5 Jan 2012 07:34:30 +0000 (08:34 +0100)
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 <monstr@monstr.eu>
Reviewed-by: Ryan Mallon <rmallon@gmail.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
CC: Rob Herring <rob.herring@calxeda.com>
drivers/input/serio/xilinx_ps2.c

index d64c5a43aaad238671f3958e9d0bd6e08da5010f..f3e54b9a4a4635aee9f845306e94addd754a8d55 100644 (file)
@@ -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;
        }