USB: gpio-vbus: ask for vbus_draw regulator before registering xceiv
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Tue, 3 May 2011 08:46:46 +0000 (12:46 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 3 May 2011 17:17:14 +0000 (10:17 -0700)
commit2887ba9e3e478522a4a3f1f64506fe1e8b0c740c
tree46ab1701d5f4e976b792d91a2b6176141ccc8c87
parentce97cac813340eb8ecb1c5410041c9eade58f870
USB: gpio-vbus: ask for vbus_draw regulator before registering xceiv

Ask for vbus_draw regulator before registering tranceiver to disallow possible
race between registration and set_power/etc.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/otg/gpio_vbus.c