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;
if (retval < 0)
goto err2;
- irq = platform_get_irq(pdev, 0);
- if (irq < 0) {
- retval = -ENXIO;
- goto err2;
- }
- retval = usb_add_hcd(hcd, irq, SA_INTERRUPT);
+ retval = usb_add_hcd(hcd, platform_get_irq(pdev, 0), SA_INTERRUPT);
if (retval == 0)
return retval;