diff options
author | Suresh Mangipudi <smangipudi@nvidia.com> | 2011-05-06 14:56:30 +0530 |
---|---|---|
committer | Niket Sirsi <nsirsi@nvidia.com> | 2011-06-01 11:46:28 -0700 |
commit | 0b3b701c73330acb569ee1d3e6ae8ee1fb092e50 (patch) | |
tree | d894724460d31cc5c2244975879b04764b963658 /arch | |
parent | e99fcbba713b848c2986a66e2ada7091a905d836 (diff) |
arm: tegra: otg: Set platform data to NULL
Set the platform data for the USB1 host mode to NULL during the unregister.
After freeing up the platform data pointer.
Bug 820333
(cherry picked from commit 3d416101e629b50c9060e3daed7ab1281a465de5)
Change-Id: I432a7315ed3a2ff3c1d8d961f6f1e981451b22fe
Reviewed-on: http://git-master/r/34459
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Tested-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/board-ventana.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-ventana.c b/arch/arm/mach-tegra/board-ventana.c index ac0c42672769..df2da0f453f2 100644 --- a/arch/arm/mach-tegra/board-ventana.c +++ b/arch/arm/mach-tegra/board-ventana.c @@ -688,6 +688,7 @@ error: static void tegra_usb_otg_host_unregister(struct platform_device *pdev) { kfree(pdev->dev.platform_data); + pdev->dev.platform_data = NULL; platform_device_unregister(pdev); } |