提交 be3bad6f 编写于 作者: M Michal Simek

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: NMichal Simek <monstr@monstr.eu>
Reviewed-by: NRyan Mallon <rmallon@gmail.com>
Acked-by: NGrant Likely <grant.likely@secretlab.ca>
CC: Rob Herring <rob.herring@calxeda.com>
上级 ba2d5aff
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册