diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-09 17:34:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-09 17:34:58 -0400 |
commit | b32729b1eeae7ef8f5709923b36b5a0906d213df (patch) | |
tree | 20bb9092d2c67569ea4efd95c0df5b8160b8b1a3 /drivers/usb | |
parent | 091d0d55b286c9340201b4ed4470be87fc568228 (diff) | |
parent | abab8761d095e0805879df48a8ba6ea7f8b31c5e (diff) |
Merge branch 'stable' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile
Pull tile update from Chris Metcalf:
"The interesting bug fix is support for the upcoming "4.2" release of
the Tilera hypervisor, which by default launches Linux at privilege
level 2 instead of 1. The fix lets new and old hypervisors and
Linuxes interoperate more smoothly, so I've tagged it for
stable@kernel.org so that older Linuxes will be able to boot under the
newer hypervisor."
* 'stable' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile:
usb: tilegx: fix memleak when create hcd fail
arch/tile: remove inline marking of EXPORT_SYMBOL functions
rtc: rtc-tile: add missing platform_device_unregister() when module exit
tile: support new Tilera hypervisor
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/ehci-tilegx.c | 7 | ||||
-rw-r--r-- | drivers/usb/host/ohci-tilegx.c | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/drivers/usb/host/ehci-tilegx.c b/drivers/usb/host/ehci-tilegx.c index 1d215cdb9dea..b083a350eea3 100644 --- a/drivers/usb/host/ehci-tilegx.c +++ b/drivers/usb/host/ehci-tilegx.c | |||
@@ -118,8 +118,10 @@ static int ehci_hcd_tilegx_drv_probe(struct platform_device *pdev) | |||
118 | 118 | ||
119 | hcd = usb_create_hcd(&ehci_tilegx_hc_driver, &pdev->dev, | 119 | hcd = usb_create_hcd(&ehci_tilegx_hc_driver, &pdev->dev, |
120 | dev_name(&pdev->dev)); | 120 | dev_name(&pdev->dev)); |
121 | if (!hcd) | 121 | if (!hcd) { |
122 | return -ENOMEM; | 122 | ret = -ENOMEM; |
123 | goto err_hcd; | ||
124 | } | ||
123 | 125 | ||
124 | /* | 126 | /* |
125 | * We don't use rsrc_start to map in our registers, but seems like | 127 | * We don't use rsrc_start to map in our registers, but seems like |
@@ -176,6 +178,7 @@ err_have_irq: | |||
176 | err_no_irq: | 178 | err_no_irq: |
177 | tilegx_stop_ehc(); | 179 | tilegx_stop_ehc(); |
178 | usb_put_hcd(hcd); | 180 | usb_put_hcd(hcd); |
181 | err_hcd: | ||
179 | gxio_usb_host_destroy(&pdata->usb_ctx); | 182 | gxio_usb_host_destroy(&pdata->usb_ctx); |
180 | return ret; | 183 | return ret; |
181 | } | 184 | } |
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: | |||
165 | err_no_irq: | 167 | err_no_irq: |
166 | tilegx_stop_ohc(); | 168 | tilegx_stop_ohc(); |
167 | usb_put_hcd(hcd); | 169 | usb_put_hcd(hcd); |
170 | err_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 | } |