ARM: tegra: cardhu: Fix for NULL pointer dereference
Rakesh Bodla [Fri, 25 Mar 2011 15:54:25 +0000 (20:54 +0530)]
USB2 is configured for UTMI instead of ULPI. Due to this
there is a null point dereference in accessing vbus status
in regulator code. Temporarily disabling USB2 for this.

Bug 807534

Original-Change-Id: Ib0d3384258b4d62ee11e116dbe03a28d797a6adc
Reviewed-on: http://git-master/r/24285
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Original-Change-Id: I479dffcc293aab4a6d7299f14a68f1f1708b1af4

Rebase-Id: Re97a000f318986be3bdc842a5a07a0e7a179af6b

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

index a7d50ac..c7a63e9 100644 (file)
@@ -340,11 +340,13 @@ static void cardhu_usb_init(void)
        tegra_otg_device.dev.platform_data = &tegra_otg_pdata;
        platform_device_register(&tegra_otg_device);
 
-       tegra_ehci2_device.dev.platform_data = &tegra_ehci_pdata[1];
+/*     tegra_ehci2_device.dev.platform_data = &tegra_ehci_pdata[1];
        platform_device_register(&tegra_ehci2_device);
+*/
 
        tegra_ehci3_device.dev.platform_data = &tegra_ehci_pdata[2];
        platform_device_register(&tegra_ehci3_device);
+
 }
 
 static void cardhu_gps_init(void)