diff options
author | Michal Simek <monstr@monstr.eu> | 2011-12-21 13:28:23 +0100 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2012-01-05 08:34:30 +0100 |
commit | be3bad6f5eb7205753e0134aeb422c4d9c1d8838 (patch) | |
tree | 140487f5166de6b915f49c3bc354f03521959620 /drivers/input | |
parent | ba2d5affded07dcdd7b076dfeb4f2eefdf79a997 (diff) | |
download | linux-be3bad6f5eb7205753e0134aeb422c4d9c1d8838.tar.bz2 |
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 <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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/serio/xilinx_ps2.c | 2 |
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) } /* 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; } |