From patchwork Thu Aug 8 13:48:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18857 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2C7A4246A4 for ; Thu, 8 Aug 2013 13:49:54 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id j10sf3658200qcx.2 for ; Thu, 08 Aug 2013 06:49:53 -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=nmKbBy42zogX3B0KPauMYiRzeuoUrd8rKI/JJTAd6+U=; b=PxCwlplOR5baMMR8v2MaVTThiXdFxmx6WHGsLoz2NgeF9IrPjnAmjrUZtcKXTRHwmB QhavD7cFXjYBkUssKjYAOkLiuJ6t3/ajUtitA4+ajS8u5h4QaAc8AAbhr/LjLvqWBIK+ uQhatOOI7+N/2+FfgX/c+hHfrAajgWmpbwaGupPAEpGNiCC0cYYwqTdeQ/oJjVsKGEKi CY/tCSb9ZGijyBKWBkj06SXCXBoEnZp1/Hz24CieFNEYrIsEqoDVlWF9XZ+hiDUxW8aw JyMIiuT5sPKRlk0rRuXFzi5KwI3DLRRlCRJbHkmo9Utu40hdn63/sKvln2txb/wxntzd TAsw== X-Received: by 10.236.169.196 with SMTP id n44mr3597649yhl.9.1375969793925; Thu, 08 Aug 2013 06:49:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.95.138 with SMTP id dk10ls1092934qeb.23.gmail; Thu, 08 Aug 2013 06:49:53 -0700 (PDT) X-Received: by 10.58.248.40 with SMTP id yj8mr3173725vec.40.1375969793811; Thu, 08 Aug 2013 06:49:53 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id vf5si3053614vdc.5.2013.08.08.06.49.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:49:53 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.177 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.177; Received: by mail-ve0-f177.google.com with SMTP id cz11so3049644veb.22 for ; Thu, 08 Aug 2013 06:49:53 -0700 (PDT) X-Gm-Message-State: ALoCoQlZdELVTrvOxMTT/0wER8vjJgykuXl0KMSIKnOh6qaMqv8L9tdvBkdSBE14zwhZb9C5yK5M X-Received: by 10.52.117.208 with SMTP id kg16mr2718980vdb.48.1375969793733; Thu, 08 Aug 2013 06:49:53 -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 u4csp16722vcz; Thu, 8 Aug 2013 06:49:53 -0700 (PDT) X-Received: by 10.66.164.136 with SMTP id yq8mr6193547pab.67.1375969792893; Thu, 08 Aug 2013 06:49:52 -0700 (PDT) Received: from mail-pb0-f52.google.com (mail-pb0-f52.google.com [209.85.160.52]) by mx.google.com with ESMTPS id aq4si8575869pbd.326.2013.08.08.06.49.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:49:52 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.52 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.52; Received: by mail-pb0-f52.google.com with SMTP id wz12so3229242pbc.25 for ; Thu, 08 Aug 2013 06:49:51 -0700 (PDT) X-Received: by 10.66.219.200 with SMTP id pq8mr6173476pac.123.1375969791344; Thu, 08 Aug 2013 06:49:51 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id fa5sm14419551pbb.3.2013.08.08.06.49.47 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:49:50 -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 08/35] cpufreq: cpufreq-cpu0: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:10 +0530 Message-Id: <59d56d7aea5dfb69bc7bda0c40529d3ef15efcab.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.128.177 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 Acked-by: Shawn Guo --- drivers/cpufreq/cpufreq-cpu0.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c index ad1fde2..65d70a3 100644 --- a/drivers/cpufreq/cpufreq-cpu0.c +++ b/drivers/cpufreq/cpufreq-cpu0.c @@ -128,7 +128,7 @@ static int cpu0_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) { pr_err("invalid frequency table: %d\n", ret); return ret; @@ -144,8 +144,6 @@ static int cpu0_cpufreq_init(struct cpufreq_policy *policy) */ cpumask_setall(policy->cpus); - cpufreq_frequency_table_get_attr(freq_table, policy->cpu); - return 0; }