summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuresh Mangipudi <smangipudi@nvidia.com>2013-11-07 10:58:40 +0530
committerHarry Hong <hhong@nvidia.com>2014-01-21 23:28:55 -0800
commit6ea2e993796159926953739e7beada4b6e905b15 (patch)
treec87830d8d84f142582767b98b036ca8071d36595
parent1c4685772fa5ad5e95609343fde0b11547f93323 (diff)
USB: ehci: tegra: destroy mutex when driver remove
mutex_destroy to be called when the driver is removed. BUG 1401358 Change-Id: Idb6703c01c41d241d8bdb67ca19c80a78c52b513 Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-on: http://git-master/r/328852 (cherry picked from commit 739f06547bff816641eb998e6f109e64b614ebfe) Reviewed-on: http://git-master/r/358170 Reviewed-by: Harry Hong <hhong@nvidia.com> Tested-by: Harry Hong <hhong@nvidia.com>
-rw-r--r--drivers/usb/host/ehci-tegra.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c
index ed0aa9d236d1..544b359a87b8 100644
--- a/drivers/usb/host/ehci-tegra.c
+++ b/drivers/usb/host/ehci-tegra.c
@@ -789,6 +789,7 @@ static int tegra_ehci_remove(struct platform_device *pdev)
device_remove_file(hcd->self.controller, &dev_attr_boost_enable);
#endif
usb_put_hcd(hcd);
+ mutex_destroy(&tegra->sync_lock);
return 0;
}