Skip to content

Commit

Permalink
USB: EHCI: Don't use NO_IRQ in xilinx ehci driver
Browse files Browse the repository at this point in the history
Drivers shouldn't use NO_IRQ. This driver is used
by Microblaze and PPC. PPC defines NO_IRQ as 0
and Microblaze has removed it.

Signed-off-by: Michal Simek <[email protected]>
Acked-by: Alan Stern <[email protected]>
CC: Greg Kroah-Hartman <[email protected]>
CC: Grant Likely <[email protected]>
CC: [email protected]
CC: [email protected]
  • Loading branch information
michalsimek committed Jan 16, 2012
1 parent d761f0c commit 7f788ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/host/ehci-xilinx-of.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ static int __devinit ehci_hcd_xilinx_of_probe(struct platform_device *op)
}

irq = irq_of_parse_and_map(dn, 0);
if (irq == NO_IRQ) {
if (!irq) {
printk(KERN_ERR "%s: irq_of_parse_and_map failed\n", __FILE__);
rv = -EBUSY;
goto err_irq;
Expand Down

0 comments on commit 7f788ec

Please sign in to comment.