Explorar o código

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>
Michal Simek %!s(int64=14) %!d(string=hai) anos
pai
achega
be3bad6f5e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/input/serio/xilinx_ps2.c

+ 1 - 1
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 */
 	/* 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");
 		dev_err(dev, "no IRQ found\n");
 		return -ENODEV;
 		return -ENODEV;
 	}
 	}