From patchwork Thu Aug 8 13:48:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 2841298 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 AE5CB9F271 for ; Thu, 8 Aug 2013 15:31:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 905C220527 for ; Thu, 8 Aug 2013 15:31:35 +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 C6DA220522 for ; Thu, 8 Aug 2013 15:31:30 +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 1V7QdI-00045G-A6; Thu, 08 Aug 2013 13:52:06 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7QcY-0004RI-CW; Thu, 08 Aug 2013 13:51:18 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7Qbk-0004Dw-Oc for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2013 13:50:29 +0000 Received: by mail-pb0-f49.google.com with SMTP id xb4so3226701pbc.36 for ; Thu, 08 Aug 2013 06:50:07 -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=GVmJ9u9Inmc0NmlsLHlBjuusEu48t1VkJv8el5MzauA=; b=gqqx4g2Qp6Sua4m1gv2ANYSCFQ8SHho8JWpuQkCoDwGH3BffAp4x82b+aNWpChNcss Y1Kaca9ioHR1z25RETvZS5Hfc6R4qdDRf+vWJXY14jhbuOp15/hrP86wcLEQijS9MhP4 yUrQb+kXEqoBaT+Gjx1iKP6Qq5cvSjtZDL3qCowoLujjTiS5cKMnZWxBNsPpCNXvVZps 4En4kOYMUfCvifdpu0GoG2NYcLTqjj9Se0TuI1aoeqXj213e0PDb2mgheIXPS+QPFdzJ u233Qv6MigM/5XfYz7bqNu+nI1/nf33RMJp1nHLygtzBTiqCal8OcnoWOfl86WZYkV7E rysw== X-Gm-Message-State: ALoCoQkupEG+ehZJ/q66B68yhl3nZ9ruz0X4Csj8x4YKVsIs3ccqrN/pZvVf320Ufp0m6np/ItKK X-Received: by 10.66.5.195 with SMTP id u3mr6123461pau.79.1375969807289; Thu, 08 Aug 2013 06:50:07 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id vu5sm16703489pab.10.2013.08.08.06.50.03 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:50:06 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Subject: [PATCH 10/35] cpufreq: davinci: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:12 +0530 Message-Id: <3bc7fbc6aa3eef737381613ce0ae6537db181eaf.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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130808_095028_967304_5972219D X-CRM114-Status: UNSURE ( 9.11 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar , patches@linaro.org, Sekhar Nori , 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: Sekhar Nori Signed-off-by: Viresh Kumar --- drivers/cpufreq/davinci-cpufreq.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/cpufreq/davinci-cpufreq.c b/drivers/cpufreq/davinci-cpufreq.c index 551dd65..f67196e 100644 --- a/drivers/cpufreq/davinci-cpufreq.c +++ b/drivers/cpufreq/davinci-cpufreq.c @@ -140,15 +140,13 @@ static int davinci_cpu_init(struct cpufreq_policy *policy) policy->cur = davinci_getspeed(0); - result = cpufreq_frequency_table_cpuinfo(policy, freq_table); + result = cpufreq_table_validate_and_show(policy, freq_table); if (result) { - pr_err("%s: cpufreq_frequency_table_cpuinfo() failed", + pr_err("%s: cpufreq_table_validate_and_show() failed", __func__); return result; } - cpufreq_frequency_table_get_attr(freq_table, policy->cpu); - /* * Time measurement across the target() function yields ~1500-1800us * time taken with no drivers on notification list.