From patchwork Thu Aug 8 13:48:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18856 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f198.google.com (mail-ve0-f198.google.com [209.85.128.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 28D48246A4 for ; Thu, 8 Aug 2013 13:49:46 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id 15sf3485509vea.1 for ; Thu, 08 Aug 2013 06:49:45 -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=qO5l7yR6YAEWhA0c08Ne9KS9FghFZjia8+CPhO7ks94=; b=pmqXVw9OhxJOVHcFCUMYtp0l2NmIG/Vqb6C8bny95OR6PRvj8CTJNf2uGEda+Da+sc 2QRv9nr4zKx1GjmWN/wNo3vVUpPNaT/gXic0mTEulBf9M1f1hboCVEoT1dEKdKuDBB9e hZADF+0uQOCna3PU7jCTCi+Dl9y2XYLFxIWwvokgF+YqmHH1YF1JUdHpDTj3MZf1A0xV Q0xnqAe3bIFIOmvNbJ51fpVvRle63Vc26D2gPNcSGBCDZ9z8ILO27z+xnQ/acQ0dUWUx 8qeNB4kuRmL1polKV28XR0AEwr2hQNEBfglCJ1U0aqe2mePyPc1XYYu5v5jEhs7W78+s Ctig== X-Received: by 10.236.41.163 with SMTP id h23mr1351483yhb.0.1375969785877; Thu, 08 Aug 2013 06:49:45 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.88.38 with SMTP id bd6ls1133718qeb.29.gmail; Thu, 08 Aug 2013 06:49:45 -0700 (PDT) X-Received: by 10.221.36.4 with SMTP id sy4mr4100735vcb.11.1375969785711; Thu, 08 Aug 2013 06:49:45 -0700 (PDT) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id i15si3097762vep.16.2013.08.08.06.49.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:49:45 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.169 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.169; Received: by mail-ve0-f169.google.com with SMTP id db10so3069870veb.14 for ; Thu, 08 Aug 2013 06:49:45 -0700 (PDT) X-Gm-Message-State: ALoCoQnCndqbZEaAVVjj7chZTY4Pul9SafKTmzU0v8mLIFZ1+AIHPOSKhTrTsDnzxe/fLTCtd09T X-Received: by 10.52.180.229 with SMTP id dr5mr2673479vdc.20.1375969785640; Thu, 08 Aug 2013 06:49:45 -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 u4csp16713vcz; Thu, 8 Aug 2013 06:49:45 -0700 (PDT) X-Received: by 10.68.186.193 with SMTP id fm1mr6102247pbc.163.1375969784703; Thu, 08 Aug 2013 06:49:44 -0700 (PDT) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx.google.com with ESMTPS id i3si9739014pac.248.2013.08.08.06.49.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:49:44 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.54 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.54; Received: by mail-pb0-f54.google.com with SMTP id ro12so3265611pbb.27 for ; Thu, 08 Aug 2013 06:49:44 -0700 (PDT) X-Received: by 10.66.169.172 with SMTP id af12mr6380112pac.23.1375969784311; Thu, 08 Aug 2013 06:49:44 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id ht5sm14376897pbb.29.2013.08.08.06.49.40 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:49:43 -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 , Steven Miao Subject: [PATCH 07/35] cpufreq: blackfin: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:09 +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.169 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: Steven Miao Signed-off-by: Viresh Kumar --- drivers/cpufreq/blackfin-cpufreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cpufreq/blackfin-cpufreq.c b/drivers/cpufreq/blackfin-cpufreq.c index ef05978..54c0a0c 100644 --- a/drivers/cpufreq/blackfin-cpufreq.c +++ b/drivers/cpufreq/blackfin-cpufreq.c @@ -210,8 +210,7 @@ static int __bfin_cpu_init(struct cpufreq_policy *policy) policy->cpuinfo.transition_latency = 50000; /* 50us assumed */ policy->cur = cclk; - cpufreq_frequency_table_get_attr(bfin_freq_table, policy->cpu); - return cpufreq_frequency_table_cpuinfo(policy, bfin_freq_table); + return cpufreq_table_validate_and_show(policy, bfin_freq_table); } static struct freq_attr *bfin_freq_attr[] = {