usb: otg: tegra: Do not free platform data twice
authorPreetham Chandru R <pchandru@nvidia.com>
Mon, 31 Dec 2012 14:17:13 +0000 (19:17 +0530)
committerMatthew Pedro <mapedro@nvidia.com>
Mon, 7 Jan 2013 21:27:48 +0000 (13:27 -0800)
commit8acf989d5896b152cc88f8b29afd11d522f903e3
treec19e72ee9e92c4171f229fb138f6537052009b03
parentc319d0e904e6bff6e6c89d3c8cf651949c379925
usb: otg: tegra: Do not free platform data twice

when platform device is unregistered, the call to platform_device_release()
will kfree the platform data. Hence do not free the platform data again.

Bug 1209618

Change-Id: Ied67f550223ec199da4bc8e38a12e7ee94c2d98a
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/187806
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
drivers/usb/otg/tegra-otg.c