diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2012-08-20 18:31:41 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-09-06 16:52:27 (GMT) |
commit | ff41aaa3b6c181a713078d8ad96da4ba822de436 (patch) | |
tree | 5bdac50cdce85e62e595aabab289f4039af5dc67 /drivers | |
parent | 3067779b1566ae5fb6af40f03ae874ac47035523 (diff) | |
download | linux-ff41aaa3b6c181a713078d8ad96da4ba822de436.tar.xz |
usb: musb: tusb6010: fix error path in tusb_probe()
On platform_device_add() failure, the TUSB6010 glue layer forgets to call
platform_device_put() -- probably due to a typo...
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/musb/tusb6010.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c index 1a1bd9c..3416254 100644 --- a/drivers/usb/musb/tusb6010.c +++ b/drivers/usb/musb/tusb6010.c @@ -1215,7 +1215,7 @@ static int __devinit tusb_probe(struct platform_device *pdev) ret = platform_device_add(musb); if (ret) { dev_err(&pdev->dev, "failed to register musb device\n"); - goto err1; + goto err2; } return 0; |