Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755283AbaD1Krl (ORCPT ); Mon, 28 Apr 2014 06:47:41 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:64391 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932216AbaD1KrL (ORCPT ); Mon, 28 Apr 2014 06:47:11 -0400 X-AuditID: cbfee68f-b7eff6d000002b70-cc-535e31aa736c 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, t.figa@samsung.com, davem@davemloft.net Subject: [PATCH 6/7 v8] crypto:s5p-sss: Use clk_prepare/clk_unprepare Date: Mon, 28 Apr 2014 16:14:58 +0530 Message-id: <1398681899-20782-7-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1398681899-20782-1-git-send-email-ch.naveen@samsung.com> References: <1398681899-20782-1-git-send-email-ch.naveen@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrDLMWRmVeSWpSXmKPExsWyRsSkWne1YVywwfq/LBYvD2lazDnfwmLR /UrG4v69n0wWl3fNYbOYcX4fk8Wibf+ZLdbPeM1icXbOISYHTo8tK28yeeycdZfdY9sBVY++ LasYPT5vkgtgjeKySUnNySxLLdK3S+DKWHvoIkvBB+6KfcdusjcwfuTsYuTkkBAwkTh68gsL hC0mceHeerYuRi4OIYGljBJH7l5igSn6fGYOVGI6o0TrpC3sIAkhgX4mifdPU0FsNgEziYOL VoPFRQScJX43r2EFaWAWWMco8enNYSaQhLCAq8TN97tYQWwWAVWJCbvPg9m8QPHHt48D2RxA 2xQk5kyyAQlzCrhJXF1/jhFil6vE0t4fzBAHrWKXmHEqBGKMgMS3yYdYIFplJTYdgCqRlDi4 4gbLBEbhBYwMqxhFUwu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Q u5s4S5zSnkeqok/NonvDxE3ebr+dO62NNbH0YGFU3teaXRnaaVXvkwxO/TT+LHr9df7lGd0z PvkEPHq/cor8rNuzg30io8LUbT8uufaVMehxe8atz24n7/74Masz1Lc17T67EktxRqKhFnNR cSIAiwPKRe0CAAA= 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 Acked-by: Herbert Xu CC: David S. Miller CC: Vladimir Zapolskiy TO: CC: --- Changes since v7: Added Acked-by from Herbert Xu 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 0ffc042..ea7d478 100644 --- a/drivers/crypto/s5p-sss.c +++ b/drivers/crypto/s5p-sss.c @@ -645,7 +645,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); @@ -706,7 +710,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; @@ -726,7 +730,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/