projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3daad24
)
usb: musb: blackfin: call gpio_free() on error path in musb_platform_init()
author
Sergei Shtylyov
<
[email protected]
>
Wed, 29 Sep 2010 06:54:31 +0000
(09:54 +0300)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 22 Oct 2010 17:21:59 +0000
(10:21 -0700)
Blackfin's musb_platform_init() needs to call gpio_free() for error cleanup iff
otg_get_transceiver() call returns NULL.
Signed-off-by: Sergei Shtylyov <
[email protected]
>
Acked-by: Mike Frysinger <
[email protected]
>
Signed-off-by: Felipe Balbi <
[email protected]
>
Cc: stable <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/musb/blackfin.c
patch
|
blob
|
history
diff --git
a/drivers/usb/musb/blackfin.c
b/drivers/usb/musb/blackfin.c
index 4fa25553c45003c46465272fa1bf39445c235778..611a9d274363ee90132e705ea61d8af1aa36657a 100644
(file)
--- a/
drivers/usb/musb/blackfin.c
+++ b/
drivers/usb/musb/blackfin.c
@@
-342,8
+342,10
@@
int __init musb_platform_init(struct musb *musb, void *board_data)
usb_nop_xceiv_register();
musb->xceiv = otg_get_transceiver();
- if (!musb->xceiv)
+ if (!musb->xceiv) {
+ gpio_free(musb->config->gpio_vrsel);
return -ENODEV;
+ }
if (ANOMALY_05000346) {
bfin_write_USB_APHY_CALIB(ANOMALY_05000346_value);