[ARM] tegra: board-stingray: Don't register usb1 ehci platform device
authorBenoit Goby <benoit@android.com>
Tue, 31 Aug 2010 23:00:41 +0000 (16:00 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:51:00 +0000 (16:51 -0700)
The cpcap-otg driver will register the device when ID pin is grounded

Change-Id: Ibe95dcd00d7e1dfe0103ca94b59afe8769d91759
Signed-off-by: Benoit Goby <benoit@android.com>
arch/arm/mach-tegra/board-stingray.c

index e3df31d80653daaba02acdbfbab711e6849a2484..6b632548728fed6549534a82e7d4b0b41022905e 100644 (file)
@@ -215,11 +215,6 @@ static struct resource cpcap_otg_resources[] = {
                .end    = TEGRA_USB_BASE + TEGRA_USB_SIZE - 1,
                .flags  = IORESOURCE_MEM,
        },
-       [1] = {
-               .start  = INT_USB,
-               .end    = INT_USB,
-               .flags  = IORESOURCE_IRQ,
-       },
 };
 
 static struct platform_device cpcap_otg = {
@@ -227,6 +222,9 @@ static struct platform_device cpcap_otg = {
        .id   = -1,
        .resource = cpcap_otg_resources,
        .num_resources = ARRAY_SIZE(cpcap_otg_resources),
+       .dev = {
+               .platform_data = &tegra_ehci1_device,
+       },
 };
 
 static struct cpcap_audio_state stingray_cpcap_audio_state = {
@@ -741,11 +739,9 @@ static void stingray_usb_init(void)
        struct android_usb_platform_data *platform_data;
 
        tegra_udc_device.dev.platform_data = &tegra_udc_pdata;
-       tegra_ehci1_device.dev.platform_data = &host_phy_config[0];
        tegra_ehci3_device.dev.platform_data = &host_phy_config[2];
 
        platform_device_register(&tegra_udc_device);
-       platform_device_register(&tegra_ehci1_device);
        platform_device_register(&tegra_ehci3_device);
 #ifdef CONFIG_USB_ANDROID_RNDIS
        src = usb_serial_num;
@@ -993,6 +989,8 @@ static void __init tegra_stingray_init(void)
        tegra_i2s_device1.dev.platform_data = &tegra_audio_pdata;
        cpcap_device_register(&cpcap_audio_device);
 
+       tegra_ehci1_device.dev.platform_data = &host_phy_config[0];
+
        platform_add_devices(stingray_devices, ARRAY_SIZE(stingray_devices));
 
        stingray_i2c_init();