From patchwork Fri Sep 13 12:59:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20097 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f199.google.com (mail-ye0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9316E202E6 for ; Fri, 13 Sep 2013 13:08:09 +0000 (UTC) Received: by mail-ye0-f199.google.com with SMTP id l4sf1147566yen.10 for ; Fri, 13 Sep 2013 06:08:09 -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=/XGJMnyhR9M65p8QHgXRacnnEZnWZ7+MGTBEIt7wsIQ=; b=RvIkYhX5pQV9yKf4AUK4rDtD5gz2wsa9xK58J6LBDehTtKjU0WiRycwLN34DsRqf/W Yz9bQIskq91SfcFAEbn7tEdByzV3s7iQDPIhUSK6ZLLyM9LZj1+Tg2t1NJNJ5LAc5f3g lpIeR4m/p6qCHMSvvvrtuQdvdDicC4L1PIPFl+a0iVc3UVNEu2o/s8O39AE3+tMdA+Tv tDYilNAeJ/+Ln4Vym2d1n/n5dK/3hVajfiBXA40yVhuOyj2/qI6hy1u6wdhoxJfphnHn aA5R2TALf0W2ZQXGN7dr/T+/e18fU1C2xRzHGDMp4IJRoYr2/BwrIdbEshKZwbWvtkvf YWRw== X-Gm-Message-State: ALoCoQkHFvqlHpfcyzNA0SJ/goXyr/g3TmJ6kt1uVBAMwTHJGUsWWwQxfceYiIYdm+Vr14lx+4zO X-Received: by 10.236.93.45 with SMTP id k33mr5141211yhf.19.1379077689274; Fri, 13 Sep 2013 06:08:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.0.12 with SMTP id 12ls126036qea.25.gmail; Fri, 13 Sep 2013 06:08:09 -0700 (PDT) X-Received: by 10.220.244.132 with SMTP id lq4mr236835vcb.31.1379077689056; Fri, 13 Sep 2013 06:08:09 -0700 (PDT) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id tm8si3105724vdc.20.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:08:09 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.178; Received: by mail-ve0-f178.google.com with SMTP id jw12so922463veb.23 for ; Fri, 13 Sep 2013 06:08:09 -0700 (PDT) X-Received: by 10.220.10.194 with SMTP id q2mr11800242vcq.2.1379077688970; Fri, 13 Sep 2013 06:08:08 -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 u4csp79701vcz; Fri, 13 Sep 2013 06:08:08 -0700 (PDT) X-Received: by 10.68.129.201 with SMTP id ny9mr13539900pbb.70.1379077688104; Fri, 13 Sep 2013 06:08:08 -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 to1si11172118pab.167.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:08:08 -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 jt11so1204198pbb.38 for ; Fri, 13 Sep 2013 06:08:07 -0700 (PDT) X-Received: by 10.66.121.68 with SMTP id li4mr15071162pab.33.1379077687563; Fri, 13 Sep 2013 06:08:07 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id bt1sm11690750pbb.2.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:08:07 -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 , spear-devel@list.st.com Subject: [PATCH 043/228] cpufreq: spear: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:49 +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.128.178 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(). 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 19e364fa..b86be6b 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);