]> git.baikalelectronics.ru Git - kernel.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)
commite9488be7ed8eb4c74375583e0d5e907f4c5d3c3d
treec2a553853a36eddae6409357b82667427c780711
parent2615c4d78e37b6d9d322d2a2a28b1e002a81005f
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