Revert "[tegra-usb] Enable Host mode on USB3 port"
Scott Williams [Sat, 29 Jan 2011 21:52:27 +0000 (13:52 -0800)]
This reverts commit 1bafb27fe8ef08008cd0ca9d9ad42cca476161aa.

Bug 786207

Original-Change-Id: I0cf71fa97fd61e5e6358445fa338642db9793aae
Reviewed-on: http://git-master/r/17582
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: Ie9c06f83a25661bcf956cb3d26afa2237fb97bc0

Rebase-Id: R0059b42875a1da4cc568bc3f48646f49231325f3

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

index 235b1cc..13de659 100644 (file)
@@ -286,11 +286,13 @@ static struct tegra_ehci_platform_data tegra_ehci_pdata[] = {
        },
 };
 
+#if ENABLE_USB_HOST
 static void cardhu_usb_init(void)
 {
        tegra_ehci3_device.dev.platform_data = &tegra_ehci_pdata[2];
        platform_device_register(&tegra_ehci3_device);
 }
+#endif
 
 struct platform_device *tegra_usb_otg_host_register(void)
 {
@@ -365,7 +367,9 @@ static void __init tegra_cardhu_init(void)
        cardhu_gpio_switch_regulator_init();
        cardhu_suspend_init();
        cardhu_touch_init();
+#if ENABLE_USB_HOST
        cardhu_usb_init();
+#endif
 
 #ifdef CONFIG_KEYBOARD_TEGRA
        cardhu_kbc_init();