usb: otg: tegra: fix otg driver crash
Venkatajagadish [Fri, 10 Aug 2012 11:09:52 +0000 (16:09 +0530)]
Fix the driver crash after inserting OTG cable in
instance0

Bug 988807

Change-Id: I245e74fc04d0575188ae824d1039560870743e93
Signed-off-by: Venkatajagadish <vjagadish@nvidia.com>
Reviewed-on: http://git-master/r/122651
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

drivers/usb/otg/tegra-otg.c

index e990550..8bc40a4 100644 (file)
@@ -391,6 +391,7 @@ static int tegra_otg_probe(struct platform_device *pdev)
 
        if (pdata) {
                tegra->builtin_host = !pdata->ehci_pdata->builtin_host_disabled;
+               tegra->pdata = pdata;
        }
 
        platform_set_drvdata(pdev, tegra);