arm: tegra: usb: usb registration order
Rakesh Bodla [Wed, 28 Sep 2011 06:31:16 +0000 (11:31 +0530)]
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>

Rebase-Id: R5e668cb4f262058fb910c284aa1ab029eb1cd4cd

arch/arm/mach-tegra/board-ventana.c

index a59a885..5b0f867 100644 (file)
@@ -374,8 +374,6 @@ static struct platform_device ventana_audio_device = {
 
 static struct platform_device *ventana_devices[] __initdata = {
        &tegra_pmu_device,
-       &tegra_udc_device,
-       &tegra_ehci2_device,
        &tegra_gart_device,
        &tegra_aes_device,
 #ifdef CONFIG_KEYBOARD_GPIO
@@ -572,10 +570,13 @@ static void __init ventana_power_off_init(void)
 static void ventana_usb_init(void)
 {
        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_udc_device);
+       platform_device_register(&tegra_ehci2_device);
+
        tegra_ehci3_device.dev.platform_data=&tegra_ehci_pdata[2];
        platform_device_register(&tegra_ehci3_device);
 }