From patchwork Thu Aug 8 13:48:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18865 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f70.google.com (mail-qe0-f70.google.com [209.85.128.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 06C0B246A4 for ; Thu, 8 Aug 2013 13:50:52 +0000 (UTC) Received: by mail-qe0-f70.google.com with SMTP id 6sf672124qeb.9 for ; Thu, 08 Aug 2013 06:50:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=cPigF+/w14JBKMPLY1sBvfkfpfv5bYacuAMluZ07D9A=; b=Hw2QeeE8oLu4bM/wGjtljpdEQzhbl0sYJWu2VnIDaaZJw3BlJJ/KWkwNKzbPtrw/j0 fmd3DnGPZW82q1wLMmRFxS446KGSyuDWr2Iz5cXRYrSLRP4SkknFxJdHnuK7WMsXdSrk B1G+zGdx/uhgDwGJdTKE9dBoRmr3jkBcnLbBAnLkNdroZhXZtvFqgu1MMDp7mEZyl0BB bcNUCIAq1JhIx8O1xf4APqKTDCtIMG/4s5Cd+AR+TcDdnHFgFL3ehKn7UStu5HpYwihY xNjI19Z0LcOdET/yHJhC5c+sR5pNoOZz88FeDnbxonzBlMe35WoyD322J17tzZaI794M /TpQ== X-Received: by 10.236.206.105 with SMTP id k69mr3368233yho.8.1375969851825; Thu, 08 Aug 2013 06:50:51 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.74.34 with SMTP id q2ls1060772qev.66.gmail; Thu, 08 Aug 2013 06:50:51 -0700 (PDT) X-Received: by 10.220.86.200 with SMTP id t8mr4063547vcl.49.1375969851638; Thu, 08 Aug 2013 06:50:51 -0700 (PDT) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id gq10si3093067vdc.69.2013.08.08.06.50.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:50:51 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.179; Received: by mail-ve0-f179.google.com with SMTP id c13so3085682vea.10 for ; Thu, 08 Aug 2013 06:50:51 -0700 (PDT) X-Gm-Message-State: ALoCoQldlsKERAFl+26gqGfJsrR1ua85fk+DlzFY3rToQ/trck3Xbdhx3wShcu4PeasSGSYIuKxC X-Received: by 10.58.6.210 with SMTP id d18mr3033300vea.96.1375969851561; Thu, 08 Aug 2013 06:50:51 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp16781vcz; Thu, 8 Aug 2013 06:50:51 -0700 (PDT) X-Received: by 10.68.210.103 with SMTP id mt7mr6088570pbc.179.1375969850715; Thu, 08 Aug 2013 06:50:50 -0700 (PDT) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx.google.com with ESMTPS id vs3si9762372pab.143.2013.08.08.06.50.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:50:50 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.54 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.54; Received: by mail-pb0-f54.google.com with SMTP id ro12so3246058pbb.13 for ; Thu, 08 Aug 2013 06:50:50 -0700 (PDT) X-Received: by 10.66.49.68 with SMTP id s4mr6151730pan.98.1375969850332; Thu, 08 Aug 2013 06:50:50 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id yg1sm14423518pbb.1.2013.08.08.06.50.46 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:50:49 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Viresh Kumar , Shawn Guo Subject: [PATCH 16/35] cpufreq: imx6q: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:18 +0530 Message-Id: X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Cc: Shawn Guo Signed-off-by: Viresh Kumar --- drivers/cpufreq/imx6q-cpufreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index e37cdae..e6f40fa 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c @@ -177,7 +177,7 @@ static int imx6q_cpufreq_init(struct cpufreq_policy *policy) { int ret; - ret = cpufreq_frequency_table_cpuinfo(policy, freq_table); + ret = cpufreq_table_validate_and_show(policy, freq_table); if (ret) { dev_err(cpu_dev, "invalid frequency table: %d\n", ret); return ret; @@ -186,7 +186,6 @@ static int imx6q_cpufreq_init(struct cpufreq_policy *policy) policy->cpuinfo.transition_latency = transition_latency; policy->cur = clk_get_rate(arm_clk) / 1000; cpumask_setall(policy->cpus); - cpufreq_frequency_table_get_attr(freq_table, policy->cpu); return 0; }