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: 18882 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f197.google.com (mail-ye0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D3C1F246A4 for ; Thu, 8 Aug 2013 13:52:57 +0000 (UTC) Received: by mail-ye0-f197.google.com with SMTP id q8sf3433019yen.8 for ; Thu, 08 Aug 2013 06:52:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state: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=7yco/b9Vv/zjIdKV+c56WIUR61mmAKx/07suu+D74QI=; b=FRyL0j14lGRSBStZ+MdNyH8iH5kawVe/xtzq+bRBkgjg1x9voS6DvYVg/cvwmVdtOH bmhK7Im/08ofO07RFDVYFwG5HVfc06fSUjBgHoS9Mxd9ecRQY1+V3BHT+GQ0xH7RCKoo KIT7jYUtBuAADvSCFFzqaHiNIUL8YLnUlhisT9d5kpiLpxQqKWVcgLXOQ4MvyQBHgDbb 3XFrzkjdv//jiPgHRGzYywcBmXF108FCsaug/zu9allQFlPtTSSx2vzYVgZjebVIEkPF l/svXQYRISALXRrbfKUuvh5laDu9iaMrtJ03qm1hR43lZJgN8yJ+c+GKXYlSFMDVkxuF /Ksw== X-Received: by 10.236.153.202 with SMTP id f50mr3278940yhk.48.1375969977532; Thu, 08 Aug 2013 06:52:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.51.40 with SMTP id h8ls1041989qeo.28.gmail; Thu, 08 Aug 2013 06:52:57 -0700 (PDT) X-Received: by 10.220.92.68 with SMTP id q4mr3991463vcm.93.1375969977421; Thu, 08 Aug 2013 06:52:57 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id uw3si3101528vec.20.2013.08.08.06.52.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:52:57 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 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.173; Received: by mail-vc0-f173.google.com with SMTP id id13so122405vcb.32 for ; Thu, 08 Aug 2013 06:52:57 -0700 (PDT) X-Gm-Message-State: ALoCoQniXnjMHo0RKaoWFo2iR7+opBwZngkarMAQcxGKBhl57g1orx2upbUYUQtmyq7qzinoBf0k X-Received: by 10.52.117.208 with SMTP id kg16mr2725653vdb.48.1375969977343; Thu, 08 Aug 2013 06:52:57 -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 u4csp16898vcz; Thu, 8 Aug 2013 06:52:56 -0700 (PDT) X-Received: by 10.68.218.161 with SMTP id ph1mr6198782pbc.152.1375969976471; Thu, 08 Aug 2013 06:52:56 -0700 (PDT) Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by mx.google.com with ESMTPS id tp5si9742154pac.280.2013.08.08.06.52.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:52:56 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.49 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.49; Received: by mail-pb0-f49.google.com with SMTP id xb4so3227401pbc.8 for ; Thu, 08 Aug 2013 06:52:55 -0700 (PDT) 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 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 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-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.173 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 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);