aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-tilegx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ohci-tilegx.c')
-rw-r--r--drivers/usb/host/ohci-tilegx.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/usb/host/ohci-tilegx.c b/drivers/usb/host/ohci-tilegx.c
index 1ae7b28a71c2..ea73009de623 100644
--- a/drivers/usb/host/ohci-tilegx.c
+++ b/drivers/usb/host/ohci-tilegx.c
@@ -112,8 +112,10 @@ static int ohci_hcd_tilegx_drv_probe(struct platform_device *pdev)
112 112
113 hcd = usb_create_hcd(&ohci_tilegx_hc_driver, &pdev->dev, 113 hcd = usb_create_hcd(&ohci_tilegx_hc_driver, &pdev->dev,
114 dev_name(&pdev->dev)); 114 dev_name(&pdev->dev));
115 if (!hcd) 115 if (!hcd) {
116 return -ENOMEM; 116 ret = -ENOMEM;
117 goto err_hcd;
118 }
117 119
118 /* 120 /*
119 * We don't use rsrc_start to map in our registers, but seems like 121 * We don't use rsrc_start to map in our registers, but seems like
@@ -165,6 +167,7 @@ err_have_irq:
165err_no_irq: 167err_no_irq:
166 tilegx_stop_ohc(); 168 tilegx_stop_ohc();
167 usb_put_hcd(hcd); 169 usb_put_hcd(hcd);
170err_hcd:
168 gxio_usb_host_destroy(&pdata->usb_ctx); 171 gxio_usb_host_destroy(&pdata->usb_ctx);
169 return ret; 172 return ret;
170} 173}