usb: ehci-tegra: Add vbus_gpio to platform data
commit434103adea3f63f6550f4b2bd16653328f933a66
authorStephen Warren <swarren@nvidia.com>
Fri, 16 Mar 2012 22:06:07 +0000 (16 16:06 -0600)
committerStephen Warren <swarren@nvidia.com>
Wed, 18 Apr 2012 16:26:37 +0000 (18 10:26 -0600)
tree1d7d4b3fea9b3b866841e51ed848e6d52547ddf4
parentdcb5dbc305b975cccf40942feba40964069541d3
usb: ehci-tegra: Add vbus_gpio to platform data

Add a vbus_gpio field to platform data. This mirrors the device tree
property nvidia,vbus-gpio. This makes the VBUS GPIO handling identical
between booting with board files and device tree; the driver always does
it.

This removes the need for board files to request and initialize the GPIO
early during their boot process, perhaps even before the GPIO driver is
ready to process the request.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: linux-usb@vger.kernel.org
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-tegra/devices.c
drivers/usb/host/ehci-tegra.c
include/linux/platform_data/tegra_usb.h