USB: pxa2xx_udc: fix hardcoded irq number
authorMilan Svoboda <msvoboda@ra.rockwell.com>
Tue, 27 Feb 2007 09:20:09 +0000 (09:20 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Apr 2007 20:28:33 +0000 (13:28 -0700)
This patch changes last use of hardcoded number of irq to
use platfrom_get_irq.

Signed-off-by: Milan Svoboda <msvoboda@ra.rockwell.com>
Acked-by: David Brownell <david-b@pacbell.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/pxa2xx_udc.c

index 1096a30d18c1a6aa4f41eeeaf5888c3104b1d284..2c043a1ea15678e865e51af464dc901d3fa12f2a 100644 (file)
@@ -2607,7 +2607,7 @@ lubbock_fail0:
                if (retval != 0) {
                        printk(KERN_ERR "%s: can't get irq %i, err %d\n",
                                driver_name, vbus_irq, retval);
-                       free_irq(IRQ_USB, dev);
+                       free_irq(irq, dev);
                        return -EBUSY;
                }
        }