summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRakesh Bodla <rbodla@nvidia.com>2011-09-28 12:01:16 +0530
committerVarun Colbert <vcolbert@nvidia.com>2011-09-28 17:29:34 -0700
commita618f1b68587abfe9db628d21ca64c746f05adb6 (patch)
treea6e1622c0c28502d970e1e62f5d97b7d485b28a6
parent0cb64dad5735eebc6c43faabaa62f83a14f3abbd (diff)
arm: tegra: usb: usb registration order
Modified the usb registration order, otg is the first to be registered. Bug 835678 Reviewed-on: http://git-master/r/39505 (cherry picked from commit 4f43316f3cbe55dc75e67002bfff37dcbba4178e) Change-Id: I8b39b280995fc3185569746bfdbd328fa2282975 Reviewed-on: http://git-master/r/54893 Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Tested-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/board-ventana.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm/mach-tegra/board-ventana.c b/arch/arm/mach-tegra/board-ventana.c
index 7cf73cc1c879..8a1f21d56307 100644
--- a/arch/arm/mach-tegra/board-ventana.c
+++ b/arch/arm/mach-tegra/board-ventana.c
@@ -531,11 +531,7 @@ static struct platform_device ventana_audio_device = {
};
static struct platform_device *ventana_devices[] __initdata = {
- &tegra_usb_fsg_device,
- &androidusb_device,
&tegra_pmu_device,
- &tegra_udc_device,
- &tegra_ehci2_device,
&tegra_gart_device,
&tegra_aes_device,
#ifdef CONFIG_KEYBOARD_GPIO
@@ -737,10 +733,15 @@ static void ventana_usb_init(void)
int i;
tegra_usb_phy_init(tegra_usb_phy_pdata, ARRAY_SIZE(tegra_usb_phy_pdata));
-
+ /* OTG should be the first to be registered */
tegra_otg_device.dev.platform_data = &tegra_otg_pdata;
platform_device_register(&tegra_otg_device);
+ platform_device_register(&tegra_usb_fsg_device);
+ platform_device_register(&androidusb_device);
+ platform_device_register(&tegra_udc_device);
+ platform_device_register(&tegra_ehci2_device);
+
tegra_ehci3_device.dev.platform_data=&tegra_ehci_pdata[2];
platform_device_register(&tegra_ehci3_device);