[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <1363257898-17504-3-git-send-email-gautam.vivek@samsung.com>
Date: Thu, 14 Mar 2013 16:14:58 +0530
From: Vivek Gautam <gautam.vivek@...sung.com>
To: linux-usb@...r.kernel.org, linux-samsung-soc@...r.kernel.org,
devicetree-discuss@...ts.ozlabs.org
Cc: linux-kernel@...r.kernel.org, linux-omap@...r.kernel.org,
gregkh@...uxfoundation.org, balbi@...com, rob.herring@...xeda.com,
kgene.kim@...sung.com, thomas.abraham@...aro.org,
dianders@...omium.org
Subject: [PATCH 2/2] usb: dwc3: exynos: use clk_prepare_enable and
clk_disable_unprepare
Convert clk_enable/clk_disable to clk_prepare_enable/clk_disable_unprepare
calls as required by common clock framework.
Signed-off-by: Vivek Gautam <gautam.vivek@...sung.com>
CC: Felipe Balbi <balbi@...com>
CC: Kukjin Kim <kgene.kim@...sung.com>
---
drivers/usb/dwc3/dwc3-exynos.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c
index 66ca9ac..b03f609 100644
--- a/drivers/usb/dwc3/dwc3-exynos.c
+++ b/drivers/usb/dwc3/dwc3-exynos.c
@@ -129,7 +129,7 @@ static int dwc3_exynos_probe(struct platform_device *pdev)
exynos->dev = dev;
exynos->clk = clk;
- clk_enable(exynos->clk);
+ clk_prepare_enable(exynos->clk);
if (node) {
ret = of_platform_populate(node, NULL, NULL, dev);
@@ -146,7 +146,7 @@ static int dwc3_exynos_probe(struct platform_device *pdev)
return 0;
err2:
- clk_disable(clk);
+ clk_disable_unprepare(clk);
err1:
return ret;
}
@@ -158,7 +158,7 @@ static int dwc3_exynos_remove(struct platform_device *pdev)
platform_device_unregister(exynos->usb2_phy);
platform_device_unregister(exynos->usb3_phy);
- clk_disable(exynos->clk);
+ clk_disable_unprepare(exynos->clk);
return 0;
}
--
1.7.6.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists