Skip to content

Commit

Permalink
input: xilinx_ps2: Don't use NO_IRQ
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michal Simek committed Jan 5, 2012
1 parent ba2d5af commit be3bad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/serio/xilinx_ps2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit be3bad6

Please sign in to comment.