Skip to content

Commit be52146

Browse files
author
Linus Torvalds
committed
Revert "USB: pxa2xx_udc: fix hardcoded irq number"
This reverts commit d2487cb. Russell King points out that it's obviously bogus, and I have to agree. Not only does "irq" not even exist in that scope, but we obviously need to free the irq that we actually requested, and that's IRQ_USB. Reported-by: Russell King <rmk@arm.linux.org.uk> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Greg KH <greg@kroah.com> Cc: David Brownell <david-b@pacbell.net>, Cc: Milan Svoboda <msvoboda@ra.rockwell.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent f47273e commit be52146

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/usb/gadget/pxa2xx_udc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2616,7 +2616,7 @@ static int __init pxa2xx_udc_probe(struct platform_device *pdev)
26162616
if (retval != 0) {
26172617
printk(KERN_ERR "%s: can't get irq %i, err %d\n",
26182618
driver_name, vbus_irq, retval);
2619-
free_irq(irq, dev);
2619+
free_irq(IRQ_USB, dev);
26202620
return -EBUSY;
26212621
}
26222622
}

0 commit comments

Comments
 (0)