From patchwork Tue Mar 26 14:53:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 2337811 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 BC0D53FC54 for ; Tue, 26 Mar 2013 14:53:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934553Ab3CZOxf (ORCPT ); Tue, 26 Mar 2013 10:53:35 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:43180 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933632Ab3CZOxe (ORCPT ); Tue, 26 Mar 2013 10:53:34 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MK900FKVW16N100@mailout1.samsung.com>; Tue, 26 Mar 2013 23:53:33 +0900 (KST) X-AuditID: cbfee61b-b7f076d0000034b6-d3-5151b66d7d3e Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 69.41.13494.D66B1515; Tue, 26 Mar 2013 23:53:33 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MK9000TTW0VGU70@mmp1.samsung.com>; Tue, 26 Mar 2013 23:53:33 +0900 (KST) From: Tomasz Figa To: linux-samsung-soc@vger.kernel.org Cc: linux-usb@vger.kernel.org, balbi@ti.com, kyungmin.park@samsung.com, kgene.kim@samsung.com, p.paneri@samsung.com, gautam.vivek@samsung.com, m.szyprowski@samsung.com, Tomasz Figa Subject: [PATCH 2/6] usb: phy: samsung: Use clk_get to get reference clock Date: Tue, 26 Mar 2013 15:53:11 +0100 Message-id: <1364309595-16102-3-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1364309595-16102-1-git-send-email-t.figa@samsung.com> References: <1364309595-16102-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprELMWRmVeSWpSXmKPExsVy+t9jAd3cbYGBBsvvSVscvF9v0XblILtF 74KrbBZnm96wW8w4v4/JYtGyVmaLtUfusluc39LJZLF+xmsWB06Pvi2rGD2O39jO5PF5k1wA cxSXTUpqTmZZapG+XQJXRt+rnWwF7zgqutdcZWxg3MHexcjJISFgIrHq2XE2CFtM4sK99UA2 F4eQwCJGiY5HbVBOF5PEzEWfWUGq2ATUJD43PALrEBFQlfjctoAdpIhZ4CyjRGPHURaQhLCA l8TnR5OZuxg5OFiAio5PkwEJ8wo4SUybcpsRYpu8xNP7fWBzOAWcJa5PWsIOUi4EVLOvpXwC I+8CRoZVjKKpBckFxUnpuUZ6xYm5xaV56XrJ+bmbGMEh9Ux6B+OqBotDjAIcjEo8vBxhAYFC rIllxZW5hxglOJiVRHgFNwYGCvGmJFZWpRblxxeV5qQWH2KU5mBREuc92GodKCSQnliSmp2a WpBaBJNl4uCUamBsZDC7KaToEK/LKuT+41Luie4CR+H1x3ctM/bePd90lWRa5Ntd0k9/+D/P VDmx5c+7TPXy2xeZE33Tbodsmz5n3wr3Wpa3va1/yrd++Gboay7e8intri+XvTmnadGKhAUR f4IjDp6yElnyTsrCWYVt/QPN+L3NYi+PP1TpKylTtJy5W6theb4SS3FGoqEWc1FxIgCgn4B1 JQIAAA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org There is no need to use devm_clk_get to get a clock that is being put at the end of the function. This patch changes the code getting reference clock to use clk_get instead of useless in this case devm_clk_get. Signed-off-by: Tomasz Figa Signed-off-by: Kyungmin Park --- drivers/usb/phy/phy-samsung-usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/phy/phy-samsung-usb.c b/drivers/usb/phy/phy-samsung-usb.c index 7b118ee5..62cdb7e 100644 --- a/drivers/usb/phy/phy-samsung-usb.c +++ b/drivers/usb/phy/phy-samsung-usb.c @@ -175,9 +175,9 @@ int samsung_usbphy_get_refclk_freq(struct samsung_usbphy *sphy) * external crystal clock XXTI */ if (sphy->drv_data->cpu_type == TYPE_EXYNOS5250) - ref_clk = devm_clk_get(sphy->dev, "ext_xtal"); + ref_clk = clk_get(sphy->dev, "ext_xtal"); else - ref_clk = devm_clk_get(sphy->dev, "xusbxti"); + ref_clk = clk_get(sphy->dev, "xusbxti"); if (IS_ERR(ref_clk)) { dev_err(sphy->dev, "Failed to get reference clock\n"); return PTR_ERR(ref_clk);