summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrashant Gaikwad <pgaikwad@nvidia.com>2011-07-01 14:34:07 +0530
committerManish Tuteja <mtuteja@nvidia.com>2011-07-05 10:35:39 -0700
commit5115ea5375912d9c35487d3d3b6e51c3c81be25c (patch)
tree88bf58ff04d7c8750a2007bb9e7b53a81d5ab3fb
parent6a78f2d2e72a2a5f20b784c0efc4917ece4776c5 (diff)
usb: otg: tegra: disable usbd clock at end of probe
In the function tegra_otg_probe(), usbd clock is kept on after probe function completes. Fix this by disabling the clock before exiting the probe function if usb hotplug is not enabled. Bug 829628 Change-Id: I2ec96fedb2ed04a9c39f3c7d34cb86fdac821822 Reviewed-on: http://git-master/r/39354 Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com> Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
-rw-r--r--drivers/usb/otg/tegra-otg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/otg/tegra-otg.c b/drivers/usb/otg/tegra-otg.c
index 893b897f5957..ed02dea8e4f9 100644
--- a/drivers/usb/otg/tegra-otg.c
+++ b/drivers/usb/otg/tegra-otg.c
@@ -341,6 +341,9 @@ static int tegra_otg_probe(struct platform_device *pdev)
}
INIT_WORK (&tegra->work, irq_work);
+#ifndef CONFIG_USB_HOTPLUG
+ clk_disable(tegra->clk);
+#endif
dev_info(&pdev->dev, "otg transceiver registered\n");
return 0;