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: 2841275 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BAA8C9F271 for ; Thu, 8 Aug 2013 15:07:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A22EC2052C for ; Thu, 8 Aug 2013 15:07:53 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D673F20523 for ; Thu, 8 Aug 2013 15:07:48 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7QcX-0003UH-TE; Thu, 08 Aug 2013 13:51:18 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7Qbw-0004KG-KG; Thu, 08 Aug 2013 13:50:40 +0000 Received: from mail-pb0-f46.google.com ([209.85.160.46]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7QbN-00049v-QN for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2013 13:50:06 +0000 Received: by mail-pb0-f46.google.com with SMTP id rq2so3263847pbb.33 for ; Thu, 08 Aug 2013 06:49:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=qO5l7yR6YAEWhA0c08Ne9KS9FghFZjia8+CPhO7ks94=; b=alRhuvEuO970+UKuRFkFt/0iRkggbfDOGQcvtS2AYiFRZU2+NsGj2YGCwBasPlaBnp AJhFc8SgayrXQBKyb6iAr0D/U+tKUNmFZ8uRFlmVFw62AvIzmCjvqHJXeSrJGLkM1jZ+ imeV81bCZ9AE8ugFHvBqjhLb31zMlCfcitzx60Xxb6uKxj34KQnRhwa8dwEETEZFxov1 JscgihbTvFMS/OPWzm0UxJFn1RHtEX7Amo3cgDrGGOr1U6jUzICKAOZwXLi35rkvRXDA tAgY9NM5YJjf4mtGaEp7OOfgoGjnB9Dqfns6Ou+PjpHRhHMPc2D90kxnh+xHwmFNaA6Z 45/A== X-Gm-Message-State: ALoCoQlqfVdcsLUOGaERLYz5L29eXw87ZO2IQOsSxTh+DRqo5Glt8W/62vw0qHNpHIBAc2Ia2dFK 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130808_095005_979185_EB349C69 X-CRM114-Status: GOOD ( 10.41 ) X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, Steven Miao , linux-pm@vger.kernel.org, Viresh Kumar , patches@linaro.org, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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[] = {