X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fusb%2Fhost%2Fohci-omap.c;fp=drivers%2Fusb%2Fhost%2Fohci-omap.c;h=3785b3f7df1be4e1c2cb0d95769f21ce4c04720a;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=c4c4babd4767f52bd12ed0a67586021a471f1b43;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c index c4c4babd4..3785b3f7d 100644 --- a/drivers/usb/host/ohci-omap.c +++ b/drivers/usb/host/ohci-omap.c @@ -14,7 +14,7 @@ * This file is licenced under the GPL. */ -#include /* IRQF_DISABLED */ +#include /* SA_INTERRUPT */ #include #include #include @@ -286,7 +286,7 @@ void usb_hcd_omap_remove (struct usb_hcd *, struct platform_device *); int usb_hcd_omap_probe (const struct hc_driver *driver, struct platform_device *pdev) { - int retval, irq; + int retval; struct usb_hcd *hcd = 0; struct ohci_hcd *ohci; @@ -329,12 +329,7 @@ int usb_hcd_omap_probe (const struct hc_driver *driver, if (retval < 0) goto err2; - irq = platform_get_irq(pdev, 0); - if (irq < 0) { - retval = -ENXIO; - goto err2; - } - retval = usb_add_hcd(hcd, irq, IRQF_DISABLED); + retval = usb_add_hcd(hcd, platform_get_irq(pdev, 0), SA_INTERRUPT); if (retval == 0) return retval;