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:
934ccec
)
USB: gpio_vbus: put a missing regulator_put() on error
author
Shinya Kuribayashi
<
[email protected]
>
Thu, 10 May 2012 01:32:14 +0000
(10:32 +0900)
committer
Greg Kroah-Hartman
<
[email protected]
>
Mon, 14 May 2012 16:02:23 +0000
(09:02 -0700)
Note that regulator_put() doesn't care about whether ->vbus_draw is
valid or not.
Signed-off-by: Shinya Kuribayashi <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/otg/gpio_vbus.c
patch
|
blob
|
history
diff --git
a/drivers/usb/otg/gpio_vbus.c
b/drivers/usb/otg/gpio_vbus.c
index 66af743ec598055b3660ff2a591d104492bd99cf..ac962acfbb18a80b7eb452090e0765384f05d2d9 100644
(file)
--- a/
drivers/usb/otg/gpio_vbus.c
+++ b/
drivers/usb/otg/gpio_vbus.c
@@
-319,6
+319,7
@@
static int __init gpio_vbus_probe(struct platform_device *pdev)
return 0;
err_otg:
+ regulator_put(gpio_vbus->vbus_draw);
free_irq(irq, pdev);
err_irq:
if (gpio_is_valid(pdata->gpio_pullup))