From patchwork Fri Sep 13 12:59:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20070 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3F0B2202E6 for ; Fri, 13 Sep 2013 13:04:57 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id r5sf1189348qcx.0 for ; Fri, 13 Sep 2013 06:04:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version: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=3OoMLuqaqynOpOH3fWYTfM8PqqKCON/+uHQw8Dh89uw=; b=fmoHTPR7jA1E4Xuikg3SgEQMWfxw0eQZRo/JYirBDWCC1pOYuNxnTw2r6EJE0lVvHl HGFiirQ+PG8StGgPeYVKM9xRk25XyJ/n7XiTnQtIIaFb9yWtaBGr1hpCFUmHWhICrGqj wfK85h/MZTWiScmoC9ODATUyUtb/PYxnuIuOnZe5S7q6Wna+PZkbQIWxhbQYzerMJcfj 3mkz+oKmZo52zxZGW2yRR4fRevbWGs4+qkiw/5ZxpNyXkXoj+yubGknPmkT/OaErk3aP WSz/O1tSRpfxy1TpwXotaYb5c6DdwwwcV7xab9F9yk8JBOCpap6s95XKI+wgpbAqKyua p0cA== X-Gm-Message-State: ALoCoQk22ZxMVUL2r6mfPfsHob7hi51lrFWl+kcnHk3XgBMYkXZGBlrEme33UOZPSrbf+gm6Gv7M X-Received: by 10.236.110.168 with SMTP id u28mr4971015yhg.40.1379077497048; Fri, 13 Sep 2013 06:04:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.86.161 with SMTP id q1ls1121375qez.13.gmail; Fri, 13 Sep 2013 06:04:56 -0700 (PDT) X-Received: by 10.52.64.143 with SMTP id o15mr10038814vds.16.1379077496820; Fri, 13 Sep 2013 06:04:56 -0700 (PDT) Received: from mail-vb0-f46.google.com (mail-vb0-f46.google.com [209.85.212.46]) by mx.google.com with ESMTPS id um1si3112308vcb.8.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:04:56 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.46 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.46; Received: by mail-vb0-f46.google.com with SMTP id p13so866863vbe.19 for ; Fri, 13 Sep 2013 06:04:56 -0700 (PDT) X-Received: by 10.58.168.205 with SMTP id zy13mr9988640veb.19.1379077496724; Fri, 13 Sep 2013 06:04:56 -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 u4csp79485vcz; Fri, 13 Sep 2013 06:04:55 -0700 (PDT) X-Received: by 10.66.218.226 with SMTP id pj2mr15281126pac.62.1379077495236; Fri, 13 Sep 2013 06:04:55 -0700 (PDT) Received: from mail-pb0-f51.google.com (mail-pb0-f51.google.com [209.85.160.51]) by mx.google.com with ESMTPS id rt3si7375241pbc.293.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:04:54 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.51 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.51; Received: by mail-pb0-f51.google.com with SMTP id jt11so1205519pbb.24 for ; Fri, 13 Sep 2013 06:04:54 -0700 (PDT) X-Received: by 10.66.88.3 with SMTP id bc3mr15051866pab.48.1379077494227; Fri, 13 Sep 2013 06:04:54 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id ry4sm18005022pab.4.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:04:53 -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 Subject: [PATCH 016/228] cpufreq: cpufreq-cpu0: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:22 +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.212.46 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(). Acked-by: Shawn Guo Signed-off-by: Viresh Kumar --- 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 cbfffa9..ce4fa47 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; }