From patchwork Thu Aug 8 13:48:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 2841251 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 88D8DBF546 for ; Thu, 8 Aug 2013 14:28:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 76A1220512 for ; Thu, 8 Aug 2013 14:28:07 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AC5CE20506 for ; Thu, 8 Aug 2013 14:28:02 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7QhN-0007XR-Gz; Thu, 08 Aug 2013 13:56:18 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7Qgp-00051U-Qc; Thu, 08 Aug 2013 13:55:43 +0000 Received: from mail-pa0-f50.google.com ([209.85.220.50]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7Qeh-0004jR-4h for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2013 13:53:31 +0000 Received: by mail-pa0-f50.google.com with SMTP id fb10so3499632pad.37 for ; Thu, 08 Aug 2013 06:53:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=05jG+ZmfS8TMFazdkOZFVGq1z74i2Q2xtu0RwpCFm5k=; b=GM37lWg2FByPD1i7Y/c6+WvN2Dk014mZUTsqJh2UZDBGRb2MA0uWUDPAdKKwZ8CzQq pkxKTB7CfQDeeCRrGfrPAC1DKwNaMDuXIhL67CUTewYKuAaCpRLIMQE2WaW9sPEkMCSN +qCoawC3lwWwaIb+hcUtoAQeaB7UJJRZ6rcVtkfF4NUzrDWWQXOR/NatQX4JOKuSxFIe uKKBHXgUcoBULn+bzLLKnvKv1D4YvERUx4YRe7cL/001M6KhIm4oMqRetBrD1UYwFG2O /QcezSLMJ99nNDO+9aRLfsoRO7g7MaHDy5OVJ/7gy1Huuw6ugameTU+GRauRdyDdUZdm pl/Q== X-Gm-Message-State: ALoCoQl024VgaZo8Z2/+tYrUJRHLH8byXjbfkrfF+n9+DzPIcisW8NyRorFcn83zihWleEnUWhAA X-Received: by 10.68.252.233 with SMTP id zv9mr6213973pbc.69.1375969989875; Thu, 08 Aug 2013 06:53:09 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id bs3sm14371654pbc.42.2013.08.08.06.53.06 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:53:09 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Subject: [PATCH 35/35] cpufreq: tegra: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:37 +0530 Message-Id: <568f3dbd414b050bb2319d960fb5044a5aed8ee3.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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130808_095331_307339_256AFE67 X-CRM114-Status: UNSURE ( 9.00 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, Stephen Warren , linux-pm@vger.kernel.org, Viresh Kumar , patches@linaro.org, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Cc: Stephen Warren Signed-off-by: Viresh Kumar --- drivers/cpufreq/tegra-cpufreq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/cpufreq/tegra-cpufreq.c b/drivers/cpufreq/tegra-cpufreq.c index cd66b85..b50d2c4 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; @@ -233,7 +232,6 @@ static int tegra_cpu_init(struct cpufreq_policy *policy) static int tegra_cpu_exit(struct cpufreq_policy *policy) { - cpufreq_frequency_table_cpuinfo(policy, freq_table); clk_disable_unprepare(emc_clk); return 0; }