projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3067779
)
usb: musb: tusb6010: fix error path in tusb_probe()
author
Sergei Shtylyov
<sshtylyov@ru.mvista.com>
Mon, 20 Aug 2012 18:31:41 +0000
(22:31 +0400)
committer
Felipe Balbi
<balbi@ti.com>
Thu, 6 Sep 2012 16:52:27 +0000
(19:52 +0300)
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>
drivers/usb/musb/tusb6010.c
patch
|
blob
|
history
diff --git
a/drivers/usb/musb/tusb6010.c
b/drivers/usb/musb/tusb6010.c
index
1a1bd9c
..
3416254
100644
(file)
--- 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 err
1
;
+ goto err
2
;
}
return 0;