From patchwork Fri Feb 7 05:26:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveen Krishna Chatradhi X-Patchwork-Id: 3599811 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C7ABEBF418 for ; Fri, 7 Feb 2014 05:26:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0D9872016C for ; Fri, 7 Feb 2014 05:26:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CBBC420154 for ; Fri, 7 Feb 2014 05:26:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750733AbaBGF0z (ORCPT ); Fri, 7 Feb 2014 00:26:55 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:41398 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750726AbaBGF0y (ORCPT ); Fri, 7 Feb 2014 00:26:54 -0500 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N0M00HW71SSOW50@mailout2.samsung.com>; Fri, 07 Feb 2014 14:26:52 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.122]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id FF.44.14803.C9E64F25; Fri, 07 Feb 2014 14:26:52 +0900 (KST) X-AuditID: cbfee691-b7efc6d0000039d3-48-52f46e9c6390 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 71.FB.29263.C9E64F25; Fri, 07 Feb 2014 14:26:52 +0900 (KST) Received: from chnaveen-ubuntu.sisodomain.com ([107.108.83.161]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N0M0078T1SOX7W1@mmp1.samsung.com>; Fri, 07 Feb 2014 14:26:52 +0900 (KST) From: Naveen Krishna Chatradhi To: linux-crypto@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, vzapolskiy@gmail.com, herbert@gondor.apana.org.au, naveenkrishna.ch@gmail.com, cpgs@samsung.com Subject: [PATCH 8/9 v6] crypto:s5p-sss: Use clk_prepare/clk_unprepare Date: Fri, 07 Feb 2014 10:56:36 +0530 Message-id: <1391750796-27528-1-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1389354331-32142-1-git-send-email-ch.naveen@samsung.com> References: <1389354331-32142-1-git-send-email-ch.naveen@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDLMWRmVeSWpSXmKPExsWyRsSkSndO3pcgg4a5ZhYvD2ladL+Ssbh/ 7yeTxeVdc9gsZpzfx2SxaNt/Zouzcw4xObB77Jx1l91j2wFVj74tqxg9Pm+SC2CJ4rJJSc3J LEst0rdL4MrYeXQec8EErorFe5exNjCu5ehi5OSQEDCReDrxDjuELSZx4d56NhBbSGApo8TS 3ckwNcvfNjF1MXIBxRcxSmxc9RjK6WeSuN1yFKybTcBM4uCi1WC2iICzxO/mNawgNrNAM6PE j9lANgeHsICrxLwWsAUsAqoSV98tYAaxeYHCPy6dYgQpkRBQkJgzyQYkzCngJnF/xisWiHtc JR5OncAKslZCoJ9doq/vCwvEHAGJb5MPsUD0ykpsOsAMcbOkxMEVN1gmMAovYGRYxSiaWpBc UJyUXmSqV5yYW1yal66XnJ+7iREY0qf/PZu4g/H+AetDjMlA4yYyS4km5wNjIq8k3tDYzMjC 1MTU2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iBWt7REyePxn+D9m9QOqP/bU7NAynR2jBJLcUaioRZzUXEiAA79fFLdAgAA 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 X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch set adds use of clk_prepare/clk_unprepare as required by generic clock framework. Signed-off-by: Naveen Krishna Chatradhi Reviewed-by: Tomasz Figa --- changes since v5: None drivers/crypto/s5p-sss.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c index a890273..d35a477 100644 --- a/drivers/crypto/s5p-sss.c +++ b/drivers/crypto/s5p-sss.c @@ -648,7 +648,11 @@ static int s5p_aes_probe(struct platform_device *pdev) return -ENOENT; } - clk_enable(pdata->clk); + err = clk_prepare_enable(pdata->clk); + if (err < 0) { + dev_err(dev, "Enabling SSS clk failed, err %d\n", err); + return err; + } spin_lock_init(&pdata->lock); pdata->ioaddr = devm_ioremap(dev, res->start, @@ -711,7 +715,7 @@ static int s5p_aes_probe(struct platform_device *pdev) tasklet_kill(&pdata->tasklet); err_irq: - clk_disable(pdata->clk); + clk_disable_unprepare(pdata->clk); s5p_dev = NULL; @@ -731,7 +735,7 @@ static int s5p_aes_remove(struct platform_device *pdev) tasklet_kill(&pdata->tasklet); - clk_disable(pdata->clk); + clk_disable_unprepare(pdata->clk); s5p_dev = NULL;