From 5115ea5375912d9c35487d3d3b6e51c3c81be25c Mon Sep 17 00:00:00 2001 From: Prashant Gaikwad Date: Fri, 1 Jul 2011 14:34:07 +0530 Subject: 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 Tested-by: Prashant Gaikwad Reviewed-by: Bharat Nihalani Reviewed-by: Suresh Mangipudi --- drivers/usb/otg/tegra-otg.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3