From patchwork Tue Sep 24 12:50:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Krawczuk X-Patchwork-Id: 2933661 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 D9224BFF05 for ; Tue, 24 Sep 2013 12:51:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4B8E920360 for ; Tue, 24 Sep 2013 12:51:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8BDB220547 for ; Tue, 24 Sep 2013 12:50:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753653Ab3IXMuu (ORCPT ); Tue, 24 Sep 2013 08:50:50 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:51918 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752988Ab3IXMuq (ORCPT ); Tue, 24 Sep 2013 08:50:46 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MTM002NYROJTNZ0@mailout3.samsung.com>; Tue, 24 Sep 2013 21:50:45 +0900 (KST) X-AuditID: cbfee61b-b7f776d0000016c8-14-52418aa425ad Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id EF.C8.05832.4AA81425; Tue, 24 Sep 2013 21:50:45 +0900 (KST) Received: from AMDC2118.DIGITAL.local ([106.120.53.16]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MTM00KZBRNOBI80@mmp1.samsung.com>; Tue, 24 Sep 2013 21:50:44 +0900 (KST) From: Mateusz Krawczuk To: rjw@sisk.pl, kgene.kim@samsung.com Cc: viresh.kumar@linaro.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux@arm.linux.org.uk, kyungmin.park@samsung.com, ben-linux@fluff.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, rob.herring@calxeda.com, pawel.moll@arm.com, mark.rutland@arm.com, swarren@wwwdotorg.org, ijc+devicetree@hellion.org.uk, rob@landley.net, mturquette@linaro.org, tomasz.figa@gmail.com, thomas.abraham@linaro.org, s.nawrocki@samsung.com, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, t.stanislaws@samsung.com, m.szyprowski@samsung.com, b.zolnierkie@samsung.com, Mateusz Krawczuk Subject: [PATCH v5 2/3] Cpufreq: s5pv210 cpufreq fixes for CCF Date: Tue, 24 Sep 2013 14:50:08 +0200 Message-id: <1380027009-2239-3-git-send-email-m.krawczuk@partner.samsung.com> X-Mailer: git-send-email 1.8.1.2 In-reply-to: <1380027009-2239-1-git-send-email-m.krawczuk@partner.samsung.com> References: <1380027009-2239-1-git-send-email-m.krawczuk@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPIsWRmVeSWpSXmKPExsVy+t9jAd2lXY5BBmumsltsnLGe1WLSugNM Fk+bfrBbzD9yjtXi3KuVjBa9C66yWZxtesNusenxNVaLhW1LWCwu75rDZvG59wijxYzz+5gs bl/mtTi95hSzxdojd9ktll6/CDRkwkU2iwnT17JY9C/sZbI4vAJo8LqX01ksDr9pZ7V4dbCN xWJe+0tWi2MzljBarNr1h9Fi41cPB2mPNfPWMHq0NPeweSz4fIXd4++qF8weO2fdZfdYufwL m8er1TNZPe5c28PmsXlJvcfBd3uYPPq2rGL0eLS4hdHj8yY5j41zQwP4orhsUlJzMstSi/Tt ErgyZjX3sxe85KhoeXKTvYFxM3sXIyeHhICJxO0pi5ghbDGJC/fWs3UxcnEICSxilDjV3sIK khASaGeSaHtoC2KzCZhLTHy2iaWLkYNDREBNYuomZ5B6ZoFNrBL/P/aDDRUWsJM4v/E0E0gN i4CqxPGrPCBhXgFfidmnL7BC7FKQ+Hn5BBuIzSngJzHj3TdmiFW+Evv+b2WawMi7gJFhFaNo akFyQXFSeq6RXnFibnFpXrpecn7uJkZwtD2T3sG4qsHiEKMAB6MSD++FBIcgIdbEsuLK3EOM EhzMSiK8mrWOQUK8KYmVValF+fFFpTmpxYcYpTlYlMR5D7ZaBwoJpCeWpGanphakFsFkmTg4 pRoY7e7OvbWxjr9N3abkiwXf9jAtvtQ+HxHPRpm0xfOaOxqMftYkZDSE6Exxef413Crgx+8E jgJB1RkneR8q9qp4se6JuM/tPNmqs/RQ5+dZ977de26UuuPkzpf2vq/WLt7H33E4V9d0m4/1 lO/zwja++8/bLNV85aJEE9c0uSNnHXcbrNj/JOuNEktxRqKhFnNRcSIAxbzvDLICAAA= 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=-5.8 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, 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 Use common clock framework api to get clock. Signed-off-by: Mateusz Krawczuk Signed-off-by: Kyungmin Park --- drivers/cpufreq/s5pv210-cpufreq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c index 5c77570..33948d6 100644 --- a/drivers/cpufreq/s5pv210-cpufreq.c +++ b/drivers/cpufreq/s5pv210-cpufreq.c @@ -511,17 +511,17 @@ static int __init s5pv210_cpu_init(struct cpufreq_policy *policy) unsigned long mem_type; int ret; - cpu_clk = clk_get(NULL, "armclk"); + cpu_clk = clk_get_sys("s5pv210-cpufreq", "armclk"); if (IS_ERR(cpu_clk)) return PTR_ERR(cpu_clk); - dmc0_clk = clk_get(NULL, "sclk_dmc0"); + dmc0_clk = clk_get_sys("s5pv210-cpufreq", "sclk_dmc0"); if (IS_ERR(dmc0_clk)) { ret = PTR_ERR(dmc0_clk); goto out_dmc0; } - dmc1_clk = clk_get(NULL, "hclk_msys"); + dmc1_clk = clk_get_sys("s5pv210-cpufreq", "hclk_msys"); if (IS_ERR(dmc1_clk)) { ret = PTR_ERR(dmc1_clk); goto out_dmc1;