mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Reviewed-by: Ryan Mallon <[email protected]> Acked-by: Grant Likely <[email protected]> CC: Rob Herring <[email protected]>
This commit is contained in:
parent
ba2d5affde
commit
be3bad6f5e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue