summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuresh Mangipudi <smangipudi@nvidia.com>2013-11-07 10:58:40 +0530
committerRiham Haidar <rhaidar@nvidia.com>2013-11-08 12:32:07 -0800
commitb31e10f24e77d5a1ef11c9a9f6f4781dcf39caae (patch)
tree908fd1253ee000adad95d06d75756e5f871d2c72
parent22b4513dd20785fa718250f8bd0e84711acf2cd5 (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/327454 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Venkat Moganty <vmoganty@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 e6466924be00..523d2fcf0ca5 100644
--- a/drivers/usb/host/ehci-tegra.c
+++ b/drivers/usb/host/ehci-tegra.c
@@ -651,6 +651,7 @@ static int tegra_ehci_remove(struct platform_device *pdev)
usb_phy_shutdown(get_usb_phy(tegra->phy));
iounmap(hcd->regs);
usb_put_hcd(hcd);
+ mutex_destroy(&tegra->sync_lock);
return 0;
}