diff options
author | Michal Simek <monstr@monstr.eu> | 2011-12-21 07:28:23 -0500 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2012-01-05 02:34:30 -0500 |
commit | be3bad6f5eb7205753e0134aeb422c4d9c1d8838 (patch) | |
tree | 140487f5166de6b915f49c3bc354f03521959620 /drivers | |
parent | ba2d5affded07dcdd7b076dfeb4f2eefdf79a997 (diff) |
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')
-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) | |||
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 | } |