Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752855Ab3DKEJN (ORCPT ); Thu, 11 Apr 2013 00:09:13 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:40118 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752475Ab3DKEJK (ORCPT ); Thu, 11 Apr 2013 00:09:10 -0400 X-AuditID: cbfee690-b7f656d0000007e3-0a-5166375ea347 From: Jingoo Han To: "'Vivek Gautam'" , "'Andrew Morton'" Cc: "'Sylwester Nawrocki'" , rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, a.zummo@towertech.it, kgene.kim@samsung.com, thomas.ab@samsung.com, dianders@chromium.org, "'Thomas Abraham'" , "'Jingoo Han'" References: <1365517660-9322-1-git-send-email-gautam.vivek@samsung.com> <516535E4.5060308@samsung.com> In-reply-to: <516535E4.5060308@samsung.com> Subject: Re: [PATCH] rtc: rtc-s3c: use clk_prepare_enable and clk_disable_unprepare Date: Thu, 11 Apr 2013 13:09:01 +0900 Message-id: <002e01ce366a$4c9f1390$e5dd3ab0$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac410NhgtQuJCfmiTMmE35oMaonYpgAmS2Xg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplleLIzCtJLcpLzFFi42I5/e+Zvm6ceVqgwZf5fBZLLl5lt+j7MZfR 4uyyg2wWbVcOsltcXniJ1aJ3wVU2i8u75rBZzDi/j8lif2cHo8XhN+2sFh3LGC2OzVjC6MDj MbvhIovHnokn2TzuXNvD5rF/7hp2j74tqxg9ps/7yeTxeZNcAHsUl01Kak5mWWqRvl0CV8bH KQdZC1YJVhy/spK1gfEJbxcjJ4eEgIlES9tnJghbTOLCvfVsXYxcHEICyxglLl/7xwhTtPpk MzNEYjqjxOGfDewQz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etgDZwC2hIrHt8EWyEsECqx7/cRMJtFQFVi1erFLCA2r4CtxJMvu6Fs QYkfk++B2cwCWhKbtzWxQtjyEpvXvAXq5QA6VV3i0V9diBuMJB49+wpVLiKx78U7xgmMQrOQ TJqFZNIsJJNmIWlZwMiyilE0tSC5oDgpPddIrzgxt7g0L10vOT93EyM4xTyT3sG4qsHiEKMA B6MSD++JhtRAIdbEsuLK3EOMEhzMSiK8XDuBQrwpiZVVqUX58UWlOanFhxiTgR6dyCwlmpwP TH95JfGGxiZmRpZGZhZGJubmpAkrifMebLUOFBJITyxJzU5NLUgtgtnCxMEp1cBovpJVMedO smqZi4+bebDavv337Usr/bx2228MrE04ZR+mPHFyQd7Whwf3cSSFOT/xPl05x5g/Zt/+Hvn4 FUr/2QRnnpvxo8vivoj5MT7r5LdJNinMiokeHjI1T77WvV8eImuqyrHlfnicYZjs6iV1XQca pruv+j2lb6Hd/Fs/C0QWHW2bX6vEUpyRaKjFXFScCACuxt6ldQMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2393 Lines: 75 On Wednesday, April 10, 2013 6:50 PM, Sylwester Nawrocki wrote: > On 04/09/2013 04:27 PM, Vivek Gautam wrote: > > From: Thomas Abraham > > > > Convert clk_enable/clk_disable to clk_prepare_enable/clk_disable_unprepare > > calls as required by common clock framework. > > > > Signed-off-by: Thomas Abraham > > Signed-off-by: Vivek Gautam > > Thanks Vivek. > > Reviewed-by: Sylwester Nawrocki CC'ed Andrew Morton It looks good. Reviewed-by: Jingoo Han > > > --- > > > > The v1 of this patch is pretty old, but the change needs to be merged to > > avoid getting those needless WARN_ON() dumps on console. > > > > Changes from v1: > > - Not using clk_disable_unprepare() at the end of s3c_rtc_probe(), since > > this will unprepare the rtc clock which is again getting used in other > > funtions later. > > - Using clk_unprepare() at the remove() instead to fix things up. > > > > drivers/rtc/rtc-s3c.c | 5 +++-- > > 1 files changed, 3 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c > > index fb994e9..e3528c9 100644 > > --- a/drivers/rtc/rtc-s3c.c > > +++ b/drivers/rtc/rtc-s3c.c > > @@ -430,6 +430,7 @@ static int s3c_rtc_remove(struct platform_device *dev) > > > > s3c_rtc_setaie(&dev->dev, 0); > > > > + clk_unprepare(rtc_clk); > > rtc_clk = NULL; > > > > return 0; > > @@ -498,7 +499,7 @@ static int s3c_rtc_probe(struct platform_device *pdev) > > return ret; > > } > > > > - clk_enable(rtc_clk); > > + clk_prepare_enable(rtc_clk); > > > > /* check to see if everything is setup correctly */ > > > > @@ -578,7 +579,7 @@ static int s3c_rtc_probe(struct platform_device *pdev) > > > > err_nortc: > > s3c_rtc_enable(pdev, 0); > > - clk_disable(rtc_clk); > > + clk_disable_unprepare(rtc_clk); > > > > return ret; > > } > > -- > To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/