From patchwork Thu Aug 8 13:48:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18872 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f70.google.com (mail-vb0-f70.google.com [209.85.212.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 44195246A4 for ; Thu, 8 Aug 2013 13:51:42 +0000 (UTC) Received: by mail-vb0-f70.google.com with SMTP id h10sf628524vbh.5 for ; Thu, 08 Aug 2013 06:51:42 -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=hi2UKp3c1EHAkwHOZMXzXPRI0trAtC0p502m24pw86M=; b=POW/gPMW7MGHT/0YcrtzZvXMu35E8aCmrC/ANTvU8sI8Pum96CnQsh8Ob4hOXeiD1G VwEezFvftW1yiQJ4x0YLwvwO+Lw79DEI0OXACKtV3SKSfmNmvhdF7/0GxtCq7XF23G0n ulWS4XXTKH4AnU076O5rQIAfGm91TJc4yOoBrYsZbTjfizCyILJKCBPBoVoiI3l+S96I /9ffAY3+0ABq1EkeMNn9OwNxg7j7coaB/p6qXX/7JwPUE358lzB9QUamyXWAIdxh9naB OwGfldByhl1WAupJdNJQN0Y7iL+8KxNGSSKp5DAqJYzdBAFYcZI7sRaGS3z5Ndm+jAY+ PlnQ== X-Received: by 10.236.169.196 with SMTP id n44mr3601046yhl.9.1375969901970; Thu, 08 Aug 2013 06:51:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.50.169 with SMTP id d9ls242230qeo.21.gmail; Thu, 08 Aug 2013 06:51:41 -0700 (PDT) X-Received: by 10.58.200.73 with SMTP id jq9mr3157004vec.53.1375969901848; Thu, 08 Aug 2013 06:51:41 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id to9si3091422vdc.97.2013.08.08.06.51.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.176 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.176; Received: by mail-ve0-f176.google.com with SMTP id b10so3045277vea.21 for ; Thu, 08 Aug 2013 06:51:41 -0700 (PDT) X-Gm-Message-State: ALoCoQmicMHGrUWh1Y91G5RVCApyE22xY/9LnSJsumqfzJKp3x5uuE1G8cL9lwzttvHBL73P+5Fi X-Received: by 10.52.180.229 with SMTP id dr5mr2677679vdc.20.1375969901766; Thu, 08 Aug 2013 06:51:41 -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 u4csp16830vcz; Thu, 8 Aug 2013 06:51:41 -0700 (PDT) X-Received: by 10.66.135.146 with SMTP id ps18mr6046697pab.172.1375969900846; Thu, 08 Aug 2013 06:51:40 -0700 (PDT) Received: from mail-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48]) by mx.google.com with ESMTPS id ph3si8657291pbc.14.2013.08.08.06.51.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:40 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.48 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.48; Received: by mail-pb0-f48.google.com with SMTP id ma3so3236685pbc.35 for ; Thu, 08 Aug 2013 06:51:40 -0700 (PDT) X-Received: by 10.68.211.233 with SMTP id nf9mr6372529pbc.26.1375969900346; Thu, 08 Aug 2013 06:51:40 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id e7sm14414404pbc.11.2013.08.08.06.51.36 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:39 -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 23/35] cpufreq: pasemi: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:25 +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.176 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);