]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: chipidea: only get vbus regulator for non-peripheral mode
authorPeter Chen <peter.chen@freescale.com>
Wed, 30 Oct 2013 01:19:29 +0000 (09:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Oct 2013 16:41:49 +0000 (09:41 -0700)
commitc2ec3a732a6bb65635693f6d86d2b7bf073b6148
treec2a553853a36eddae6409357b82667427c780711
parent0d768fcfc01098ae0e676c78746c9f4fd8228cd7
usb: chipidea: only get vbus regulator for non-peripheral mode

If the user chooses peripheral mode for this controller, the vbus
regulator doesn't need to get, since the host will supply the vbus,
it can save one vbus pin for other usage.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Tested-by: Frank Li <frank.li@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/core.c