From patchwork Thu Aug 8 13:48:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 2841270 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 36E5E9F294 for ; Thu, 8 Aug 2013 15:00:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 04F26204F4 for ; Thu, 8 Aug 2013 15:00:52 +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 4B18220205 for ; Thu, 8 Aug 2013 15:00:47 +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 1V7QhE-0007KK-NJ; Thu, 08 Aug 2013 13:56:09 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7Qgb-0004zr-LN; Thu, 08 Aug 2013 13:55:29 +0000 Received: from mail-pa0-f54.google.com ([209.85.220.54]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7QeS-0004hb-Pz for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2013 13:53:18 +0000 Received: by mail-pa0-f54.google.com with SMTP id kx1so3506334pab.27 for ; Thu, 08 Aug 2013 06:52:55 -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=7yco/b9Vv/zjIdKV+c56WIUR61mmAKx/07suu+D74QI=; b=fAcoGYSkqlKc87rLcTkXCtFO7ntOH5ML4a9ZGTFLizGX3R9HkYPW2i8BqoCkAAFXxC gEryp9pX35y5BRKkUKyaf5yrZE6o79/IEyegkrK6m9m/EjO4+k3kyTrkP8eFB/N5mZOe AxTm0IW4z5As9XIHe1+guyjWgqs9Nm3gffl8kmcNZ6kDoL4R1DJolghYey3h1Gd83P4a qUjW25uphcpLzXEojD+QvzwdU0thoiR3aclXdF1cz7Tk/kCFtPj0uqTCMzjkIpqJPvBp 6xUZ407odk8Fa8JFc4NIbrxYDSM4t48zGg+eGjAEsXHn8Sq6IYnmeDsSUuNALUNI1Xol 1b7w== X-Gm-Message-State: ALoCoQmIDu8OEBCo7FD0kBcfAn2DNm0YQzEJ/7QvKNTFejIWIkeP70nBeW1GdefC7SCab7+drVMb X-Received: by 10.66.232.39 with SMTP id tl7mr6159191pac.140.1375969975799; Thu, 08 Aug 2013 06:52:55 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id fk4sm16686958pab.23.2013.08.08.06.52.51 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:52:55 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Subject: [PATCH 33/35] cpufreq: spear: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:35 +0530 Message-Id: <6d43bbdce2e7d6dfcd6cd8296722d40feddcf2f2.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_095316_968654_CEF50736 X-CRM114-Status: UNSURE ( 9.77 ) 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, spear-devel@list.st.com, 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: spear-devel@list.st.com Signed-off-by: Viresh Kumar --- drivers/cpufreq/spear-cpufreq.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/cpufreq/spear-cpufreq.c b/drivers/cpufreq/spear-cpufreq.c index c3efa7f..1d619dd 100644 --- a/drivers/cpufreq/spear-cpufreq.c +++ b/drivers/cpufreq/spear-cpufreq.c @@ -178,13 +178,12 @@ static int spear_cpufreq_init(struct cpufreq_policy *policy) { int ret; - ret = cpufreq_frequency_table_cpuinfo(policy, spear_cpufreq.freq_tbl); + ret = cpufreq_table_validate_and_show(policy, spear_cpufreq.freq_tbl); if (ret) { - pr_err("cpufreq_frequency_table_cpuinfo() failed"); + pr_err("cpufreq_table_validate_and_show() failed"); return ret; } - cpufreq_frequency_table_get_attr(spear_cpufreq.freq_tbl, policy->cpu); policy->cpuinfo.transition_latency = spear_cpufreq.transition_latency; policy->cur = spear_cpufreq_get(0);