From patchwork Fri Sep 13 12:59: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: 20085 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 39191202E6 for ; Fri, 13 Sep 2013 13:06:47 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id c41sf1233803yho.0 for ; Fri, 13 Sep 2013 06:06:47 -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=hi2UKp3c1EHAkwHOZMXzXPRI0trAtC0p502m24pw86M=; b=Fe+uO/s5djZ0Y5Xo+DKyWnpj0JLS3K9AsEGV2PPtFMOXmU6wxTOllZMFbMpqIG8+Km 8oBFfKRoUie+I4ewr67jjCOmcNeOGpnqA8Ub/Ij/enIjs+LLsgVGjjnhpWELoYqJG4Oz guodhRwOJOi1o1ZT6OJr9Wvofto5EWra0bCwpcZAzhX/0fr2w0onJqLcEXwQzHijj9ey rYEW8t7zDnm5GTXowbIuMsRUgBj3q6bCdyM7PrXspt98QG81j5vg6cQJF/yNjE4biEPK LMTD5jIMQ3IcMQuZGClDtHYKoo9kiXVNPmSFlFD+6ftdbDZIqc8mVfNz9tLvrCBUGz3y 1a2g== X-Gm-Message-State: ALoCoQn2+7Vxk8D7Jfp7l8m0MupdIvfuebv4tHu/IeXDD3l1c5YlYin2pWIHFuS2MFO/KcuEo+XJ X-Received: by 10.236.142.38 with SMTP id h26mr310120yhj.57.1379077606990; Fri, 13 Sep 2013 06:06:46 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.39.193 with SMTP id r1ls1214124qek.30.gmail; Fri, 13 Sep 2013 06:06:46 -0700 (PDT) X-Received: by 10.52.64.143 with SMTP id o15mr10045860vds.16.1379077606763; Fri, 13 Sep 2013 06:06:46 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id 10si3109478vcs.30.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:46 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.181 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.181; Received: by mail-ve0-f181.google.com with SMTP id oy12so912629veb.26 for ; Fri, 13 Sep 2013 06:06:46 -0700 (PDT) X-Received: by 10.221.64.17 with SMTP id xg17mr11903038vcb.5.1379077606656; Fri, 13 Sep 2013 06:06:46 -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 u4csp79610vcz; Fri, 13 Sep 2013 06:06:46 -0700 (PDT) X-Received: by 10.68.202.130 with SMTP id ki2mr13445859pbc.43.1379077605412; Fri, 13 Sep 2013 06:06:45 -0700 (PDT) Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by mx.google.com with ESMTPS id mj9si11183673pab.132.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:45 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.49 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.49; Received: by mail-pa0-f49.google.com with SMTP id ld10so2503857pab.22 for ; Fri, 13 Sep 2013 06:06:44 -0700 (PDT) X-Received: by 10.68.204.136 with SMTP id ky8mr1581969pbc.192.1379077604889; Fri, 13 Sep 2013 06:06:44 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id py4sm11670123pbc.14.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:44 -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 Subject: [PATCH 031/228] cpufreq: pasemi: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:37 +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.181 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(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/pasemi-cpufreq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/cpufreq/pasemi-cpufreq.c b/drivers/cpufreq/pasemi-cpufreq.c index 534e43a..23bc8a82 100644 --- a/drivers/cpufreq/pasemi-cpufreq.c +++ b/drivers/cpufreq/pasemi-cpufreq.c @@ -219,12 +219,10 @@ static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy) ppc_proc_freq = policy->cur * 1000ul; - cpufreq_frequency_table_get_attr(pas_freqs, policy->cpu); - /* this ensures that policy->cpuinfo_min and policy->cpuinfo_max * are set correctly */ - return cpufreq_frequency_table_cpuinfo(policy, pas_freqs); + return cpufreq_table_validate_and_show(policy, pas_freqs); out_unmap_sdcpwr: iounmap(sdcpwr_mapbase);