From patchwork Thu Aug 8 13:48:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18871 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f200.google.com (mail-gh0-f200.google.com [209.85.160.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3FEEF246A4 for ; Thu, 8 Aug 2013 13:51:35 +0000 (UTC) Received: by mail-gh0-f200.google.com with SMTP id 10sf727953ghy.3 for ; Thu, 08 Aug 2013 06:51:35 -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=Y6gf5WlGVO4IHau+S+XjkB8ucZx4IwOZYckwNN8kiO4=; b=RiOmHMuWDebJ6rt3bEfaI6kgwcEmJPfjnWg1Uq4iCKOVi5IFmaje3nUQwq1cF9hMyI UHdWmuerdi5hd9pwtG5hmTdsBDAh0cocHyqbaktXhH9jPfFZtbPH8QVU2o0l+UFRF1oc RhvUOdWQNFFN038KKVKZBC8mu9tUwZhO/V7OCIA0KskDLj2TLt3YTHHTA0+K+P1Jfezj TMsfHIrXowHuTPdwEyiVvOvkOyXaE2YwQQ3efVYwtwWJbqfVSq6sUXeH+KIupptxeLhh 3NsZjjDx5lP46vDVh3h0yGUBPxQRRxBGaGUGVxfzMZ/Ah0S0iqZrAF+PaSuQP1yHOVRx PYhA== X-Received: by 10.236.151.44 with SMTP id a32mr3073024yhk.51.1375969895004; Thu, 08 Aug 2013 06:51:35 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.26.6 with SMTP id h6ls1112126qeg.99.gmail; Thu, 08 Aug 2013 06:51:34 -0700 (PDT) X-Received: by 10.58.155.37 with SMTP id vt5mr3188913veb.41.1375969894877; Thu, 08 Aug 2013 06:51:34 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id ui8si3095637vcb.79.2013.08.08.06.51.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:34 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id gf11so119079vcb.25 for ; Thu, 08 Aug 2013 06:51:34 -0700 (PDT) X-Gm-Message-State: ALoCoQkemIbC720OS53IWPwk9l/Ns372lCXJgueMe4FiRmpC2ot9vzlJo8AMxwl0WMxw8cM9l+q7 X-Received: by 10.52.109.69 with SMTP id hq5mr2630490vdb.85.1375969894794; Thu, 08 Aug 2013 06:51:34 -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 u4csp16821vcz; Thu, 8 Aug 2013 06:51:34 -0700 (PDT) X-Received: by 10.68.241.198 with SMTP id wk6mr6103758pbc.165.1375969893867; Thu, 08 Aug 2013 06:51:33 -0700 (PDT) Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by mx.google.com with ESMTPS id if6si8585820pbc.313.2013.08.08.06.51.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:33 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.44 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.44; Received: by mail-pb0-f44.google.com with SMTP id xa7so3243367pbc.3 for ; Thu, 08 Aug 2013 06:51:33 -0700 (PDT) X-Received: by 10.68.104.101 with SMTP id gd5mr6165052pbb.132.1375969893464; Thu, 08 Aug 2013 06:51:33 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id sz6sm16719842pab.5.2013.08.08.06.51.29 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:32 -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 , "David S. Miller" Subject: [PATCH 22/35] cpufreq: p4-clockmod: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:24 +0530 Message-Id: <76facebc0442f1b7c5041168a0dd87bd0080e06b.1375964117.git.viresh.kumar@linaro.org> 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.220.180 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: David S. Miller Signed-off-by: Viresh Kumar --- drivers/cpufreq/p4-clockmod.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cpufreq/p4-clockmod.c b/drivers/cpufreq/p4-clockmod.c index 2f0a2a6..03478bf 100644 --- a/drivers/cpufreq/p4-clockmod.c +++ b/drivers/cpufreq/p4-clockmod.c @@ -230,7 +230,6 @@ static int cpufreq_p4_cpu_init(struct cpufreq_policy *policy) else p4clockmod_table[i].frequency = (stock_freq * i)/8; } - cpufreq_frequency_table_get_attr(p4clockmod_table, policy->cpu); /* cpuinfo and default policy values */ @@ -239,7 +238,7 @@ static int cpufreq_p4_cpu_init(struct cpufreq_policy *policy) policy->cpuinfo.transition_latency = 10000001; policy->cur = stock_freq; - return cpufreq_frequency_table_cpuinfo(policy, &p4clockmod_table[0]); + return cpufreq_table_validate_and_show(policy, &p4clockmod_table[0]); }