summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuresh Mangipudi <smangipudi@nvidia.com>2011-07-04 11:11:15 +0530
committerManish Tuteja <mtuteja@nvidia.com>2011-07-06 03:28:22 -0700
commit4f43316f3cbe55dc75e67002bfff37dcbba4178e (patch)
treebeb09fd7b51290d1cf6c90db67de4f5f2457b7cf
parent868eff5bd918be16ce7181a9f7efeb3d061370c7 (diff)
arm: tegra: usb: usb registration order
Modified the usb registration order, otg is the first to be registered. Bug 835678 Change-Id: I709a944a49aa59886f906bd4184e80b35836125c Reviewed-on: http://git-master/r/39505 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Alex Courbot <acourbot@nvidia.com> Tested-by: Alex Courbot <acourbot@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 48644d36a87d..8b0ecd915e11 100644
--- a/arch/arm/mach-tegra/board-ventana.c
+++ b/arch/arm/mach-tegra/board-ventana.c
@@ -600,13 +600,9 @@ static struct platform_device tegra_camera = {
};
static struct platform_device *ventana_devices[] __initdata = {
- &tegra_usb_fsg_device,
- &androidusb_device,
&tegra_uartb_device,
&tegra_uartc_device,
&pmu_device,
- &tegra_udc_device,
- &tegra_ehci2_device,
&tegra_gart_device,
&tegra_aes_device,
#ifdef CONFIG_KEYBOARD_GPIO
@@ -821,10 +817,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);