USB: gpio_vbus: put a missing regulator_put() on error
authorShinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Thu, 10 May 2012 01:32:14 +0000 (10:32 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2012 16:02:23 +0000 (09:02 -0700)
commita6dc9cf76b9c39ccffe083f09f995ce2502f5773
tree592c850c522f2810f951e3843e3fce71223359b5
parent934ccec4da14dc0586dfe08b36166364bdd2181b
USB: gpio_vbus: put a missing regulator_put() on error

Note that regulator_put() doesn't care about whether ->vbus_draw is
valid or not.

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/otg/gpio_vbus.c