From patchwork Fri Sep 13 12:59:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 2884951 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 69E3FBFF05 for ; Fri, 13 Sep 2013 13:10:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D3F5E20357 for ; Fri, 13 Sep 2013 13:10:19 +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 A8F93202BE for ; Fri, 13 Sep 2013 13:10:18 +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 1VKT7S-0005nF-F2; Fri, 13 Sep 2013 13:09:07 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKT72-00064x-Es; Fri, 13 Sep 2013 13:08:40 +0000 Received: from mail-pb0-f43.google.com ([209.85.160.43]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKT4i-0005Ye-Ef for linux-arm-kernel@lists.infradead.org; Fri, 13 Sep 2013 13:06:17 +0000 Received: by mail-pb0-f43.google.com with SMTP id md4so1210650pbc.2 for ; Fri, 13 Sep 2013 06:05:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=g8Qbd2PJ5SSg6LdgwYB0iQo75fURiwdXi/Npfe2FPYY=; b=ZCprTAFWam/nqsPW33hpNACn/jWWNtiG/CJ/7DIryUWsjZzPAl66mn0ihaIBKql5zS Ljc7/4qUzAv4/MSCT35ZXoTn9wZ0tuPRnxzmsr9q29C5RlNgRJ2/VljoA789QybFeIbO fXTzF/0b62SqVAomMkH1/vdxrA7nO/EaKRmy42VMYkW62sA9pIupYOPK+bNJebzn6M8P Xwv/314zT3Ubk9zB8AauFfBED53p+UWPuxRAPE8jmNIonfGpK+fBJZ8efuMU61gMpqtc tHpv/B86TqI84qd6D1GODXLpc5Zg2e9GsF1LsRIMTfBFIR7NWhVivIEj5b1t8q5Gs+qD 5OEA== X-Gm-Message-State: ALoCoQmE+tkrf3H7q6633ELNQZUWXUMbij6IAhDbbUQigWiyKPYSErtBNuaRkQrbMU3Zx+eWPIRG X-Received: by 10.67.23.199 with SMTP id ic7mr15376085pad.73.1379077553197; Fri, 13 Sep 2013 06:05:53 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id tz3sm11656897pbc.20.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:05:52 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Subject: [PATCH 024/228] cpufreq: imx6q: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:30 +0530 Message-Id: <96dc59aaf8ee2057813782806a8a0c2b0d9b3770.1379063063.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-20130913_090616_761384_FFDD368D X-CRM114-Status: UNSURE ( 9.49 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar , patches@linaro.org, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, Shawn Guo , 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=-5.1 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: Shawn Guo Signed-off-by: Viresh Kumar --- drivers/cpufreq/imx6q-cpufreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index 3e39654..cd9489f 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c @@ -160,7 +160,7 @@ static int imx6q_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) { dev_err(cpu_dev, "invalid frequency table: %d\n", ret); return ret; @@ -169,7 +169,6 @@ static int imx6q_cpufreq_init(struct cpufreq_policy *policy) policy->cpuinfo.transition_latency = transition_latency; policy->cur = clk_get_rate(arm_clk) / 1000; cpumask_setall(policy->cpus); - cpufreq_frequency_table_get_attr(freq_table, policy->cpu); return 0; }