From patchwork Fri Sep 13 12:59:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20099 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f200.google.com (mail-ye0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DBCE6202E6 for ; Fri, 13 Sep 2013 13:08:23 +0000 (UTC) Received: by mail-ye0-f200.google.com with SMTP id r3sf1148165yen.3 for ; Fri, 13 Sep 2013 06:08:23 -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=QArYozIE+L/QTijOq1hIKypy8dPTpPZ9ZjfTr/nKu8c=; b=Fqzzfl1kqTsLVYCceEeNjxv/sCo2FgvYqJZToUdK6Gzi3uIUm114fNL4Z15qD5/SAa by2wnVFmM5mkVNksLnUL3hSK+Uc7+mtWoqcJ8JLOXN9qZAXsm47migsZEwV61cMa5S6U 8jqCwwEYt1lupWer8Vmc2hePEc5WkXw6BtoNEjCJ630X3uKgkXO7KVLgDStb1Gm3kyV9 IKL/fkNPVHkPK2lLH1c2XjSMTH074PJ7Lq+pNCnQ7JLOY+n3eqAySzku3dqzv1JKxRNP fxqG3HuZou7moNAc2A2nSdc7T5tZqvIN7vg/PJHVcQVHnfWyv01EcK/nvTKAm+twD0pf M7Ww== X-Gm-Message-State: ALoCoQmnV99tovllEPU2y9oWRcY4Ly1LVR3goMpEi1V5ierKeWIn8KB4Vy1c1HQczGxE8hzMU8vu X-Received: by 10.236.176.1 with SMTP id a1mr4854058yhm.10.1379077703446; Fri, 13 Sep 2013 06:08:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.14.106 with SMTP id o10ls1129987qec.36.gmail; Fri, 13 Sep 2013 06:08:23 -0700 (PDT) X-Received: by 10.58.196.132 with SMTP id im4mr1036021vec.28.1379077703224; Fri, 13 Sep 2013 06:08:23 -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 bq2si3090607vcb.115.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:08:23 -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 gf11so870830vcb.25 for ; Fri, 13 Sep 2013 06:08:23 -0700 (PDT) X-Received: by 10.58.67.101 with SMTP id m5mr734405vet.29.1379077703149; Fri, 13 Sep 2013 06:08:23 -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 u4csp79715vcz; Fri, 13 Sep 2013 06:08:22 -0700 (PDT) X-Received: by 10.68.200.200 with SMTP id ju8mr2073505pbc.172.1379077702202; Fri, 13 Sep 2013 06:08:22 -0700 (PDT) Received: from mail-pb0-f41.google.com (mail-pb0-f41.google.com [209.85.160.41]) by mx.google.com with ESMTPS id mj9si11176861pab.161.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:08:22 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.41 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.41; Received: by mail-pb0-f41.google.com with SMTP id rp2so1217600pbb.14 for ; Fri, 13 Sep 2013 06:08:21 -0700 (PDT) X-Received: by 10.68.29.36 with SMTP id g4mr13395963pbh.145.1379077701805; Fri, 13 Sep 2013 06:08:21 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id fl3sm18006910pad.10.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:08:21 -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 045/228] cpufreq: tegra: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:51 +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.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(). Acked-by: Stephen Warren Signed-off-by: Viresh Kumar --- drivers/cpufreq/tegra-cpufreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cpufreq/tegra-cpufreq.c b/drivers/cpufreq/tegra-cpufreq.c index a7b876f..d45c1d8 100644 --- a/drivers/cpufreq/tegra-cpufreq.c +++ b/drivers/cpufreq/tegra-cpufreq.c @@ -215,8 +215,7 @@ static int tegra_cpu_init(struct cpufreq_policy *policy) clk_prepare_enable(emc_clk); clk_prepare_enable(cpu_clk); - cpufreq_frequency_table_cpuinfo(policy, freq_table); - cpufreq_frequency_table_get_attr(freq_table, policy->cpu); + cpufreq_table_validate_and_show(policy, freq_table); policy->cur = tegra_getspeed(policy->cpu); target_cpu_speed[policy->cpu] = policy->cur;