Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753154AbaBQJpo (ORCPT ); Mon, 17 Feb 2014 04:45:44 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:29241 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752910AbaBQJp0 (ORCPT ); Mon, 17 Feb 2014 04:45:26 -0500 X-AuditID: cbfee691-b7efc6d0000039d3-85-5301da2eadfe 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, davem@davemloft.net Subject: [PATCH 8/9 v7] crypto:s5p-sss: Use clk_prepare/clk_unprepare Date: Mon, 17 Feb 2014 15:14:34 +0530 Message-id: <1392630275-8667-9-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1392630275-8667-1-git-send-email-ch.naveen@samsung.com> References: <1392630275-8667-1-git-send-email-ch.naveen@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOLMWRmVeSWpSXmKPExsWyRsSkWlfvFmOwwb1dhhYvD2lazDnfwmLR /UrG4v69n0wWl3fNYbOYcX4fk8Wibf+ZLc7OOcTkwOGxZeVNJo+ds+6ye2w7oOrRt2UVo8fn TXIBrFFcNimpOZllqUX6dglcGe93GxY85a7YeWgKewPjG84uRk4OCQETiTkvnzFC2GISF+6t Z+ti5OIQEljKKHHj1ldmmKJDfy6xQCQWMUqcbeuDcvqZJFoP7QJrZxMwkzi4aDU7iC0i4Czx u3kNK0gRs8AsRonZ9z+BFQkLuEpcPnyCqYuRg4NFQFVixyYLkDCvgIvE+V1NLCBhCQEFiTmT bEDCnEDVnXe2s4DYQkAl6zohjpAQWMQu8XHVKTaQBIuAgMS3yYegemUlNh2AOlpS4uCKGywT GIUXMDKsYhRNLUguKE5K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3F5Dy3jiWj0q1zq/L1zZFt2dHz/n7+6zrl2frKNg0/m5hnJxbpr+SPvuby mv2h4uHtnir3T2/nY/kYlxvBHeYndNrswZ3Nl9/uW9FUaPzGgkXiuRJLcUaioRZzUXEiAJP8 a3nnAgAA 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 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 CC: David S. Miller CC: Herbert Xu CC: Vladimir Zapolskiy TO: CC: --- Changes since v6: 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 7da1da4..429b4c1 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; -- 1.7.9.5 -- 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/