From patchwork Thu Mar 14 10:44:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 2269591 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 565773FC8A for ; Thu, 14 Mar 2013 10:48:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757238Ab3CNKrp (ORCPT ); Thu, 14 Mar 2013 06:47:45 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:11116 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756828Ab3CNKrm (ORCPT ); Thu, 14 Mar 2013 06:47:42 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MJN00G7ACNH2T60@mailout2.samsung.com>; Thu, 14 Mar 2013 19:47:41 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.126]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 99.BD.07735.DCAA1415; Thu, 14 Mar 2013 19:47:41 +0900 (KST) X-AuditID: cbfee68e-b7f946d000001e37-9d-5141aacd4b3c Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 6F.CE.17838.DCAA1415; Thu, 14 Mar 2013 19:47:41 +0900 (KST) Received: from vivekkumarg-linuxpc.sisodomain.com ([107.108.214.169]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MJN002YWCM3AD90@mmp2.samsung.com>; Thu, 14 Mar 2013 19:47:41 +0900 (KST) From: Vivek Gautam To: linux-usb@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, gregkh@linuxfoundation.org, balbi@ti.com, rob.herring@calxeda.com, kgene.kim@samsung.com, thomas.abraham@linaro.org, dianders@chromium.org Subject: [PATCH 2/2] usb: dwc3: exynos: use clk_prepare_enable and clk_disable_unprepare Date: Thu, 14 Mar 2013 16:14:58 +0530 Message-id: <1363257898-17504-3-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.6.5 In-reply-to: <1363257898-17504-1-git-send-email-gautam.vivek@samsung.com> References: <1363257898-17504-1-git-send-email-gautam.vivek@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprGIsWRmVeSWpSXmKPExsWyRsSkTvfsKsdAgw3HtSwO3q+3ODD7IavF 2WUH2SyaF69ns+hdcJXN4vKuOWwWs5f0s1jMOL+PyWLRslZmi8MrDjBZHJuxhNGB22PB5yvs HrMbLrJ43Lm2h81j/9w17B7nZyxk9OjbsorR4/iN7UwenzfJBXBEcdmkpOZklqUW6dslcGWc 3jCZreAPZ8XZLwfYGhi3cHQxcnJICJhILPm0mAnCFpO4cG89G4gtJLCUUWLjVzeYmkcbDzBB xKczStyep9HFyAVkT2GS2LfyGiNIgk1AV6Lp7S4wW0QgXeL/3X4wm1ngDKPEyxexILawQJTE 9z2HwQaxCKhKnJlzHszmFfCQuL+4ix1imYLEm9vPmLsYOTg4BTwlLm/PhdjrIXFq/SZGkL0S AufYJZ78OMwOMUdA4tvkQywg9RICshKbDjBDjJGUOLjiBssERuEFjAyrGEVTC5ILipPSi4z0 ihNzi0vz0vWS83M3MQLj5PS/Z307GG8esD7EmAw0biKzlGhyPjDO8kriDY3NjCxMTUyNjcwt zUgTVhLnVWuxDhQSSE8sSc1OTS1ILYovKs1JLT7EyMTBKdXAGJKX3nb6f8GTPp2F867+fXX9 r/TKpk2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ot2rhGYp8RSnJFoqMVcVJwIAHYZLRMHAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Convert clk_enable/clk_disable to clk_prepare_enable/clk_disable_unprepare calls as required by common clock framework. Signed-off-by: Vivek Gautam CC: Felipe Balbi CC: Kukjin Kim --- 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; }