From patchwork Fri Sep 13 12:59:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20069 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f69.google.com (mail-vb0-f69.google.com [209.85.212.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 63439202E6 for ; Fri, 13 Sep 2013 13:04:49 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id e13sf1189724vbg.4 for ; Fri, 13 Sep 2013 06:04:49 -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=qO5l7yR6YAEWhA0c08Ne9KS9FghFZjia8+CPhO7ks94=; b=BNYTJXGzsXodxk39uoF7rZ7G4DQ1CV/36fClP43r2/AsgP9Yl4GlKd4ydDsYOM1xS9 Ic/IH0lIrPn6g/EyiQ8TJskHqL/LsqW94lNad4ul8Nt2L06wOgU7VB+FXF+0BnzUJ9Ow JMqjRauadl3IvsAvhuhYvyT8GYmk4+L3gjsKazgRnQ61OAyCBWKEtmsY9BO8SwhTBh8B C8ffcTIJ1D0x5182UJj5+mu/jW07wGSbSzvZdSEns25+EU6oKnNqfR3A7+YmzGAjjFol k0V0+sy7XdlPRAZuuxVNm6DEVSUcE5rzfGzXgUkhGsYWg6YS2D1B+MPqbgUvNvxsphYn aQHQ== X-Gm-Message-State: ALoCoQk7v8I/AGsoSyKUD3O5Si/7GWbAP8p1bzL+i8gjpGJwBQgIUOj+VnOSqie65b//qlX1ZePB X-Received: by 10.58.49.3 with SMTP id q3mr878884ven.26.1379077489150; Fri, 13 Sep 2013 06:04:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.5.9 with SMTP id o9ls1131065qeo.49.gmail; Fri, 13 Sep 2013 06:04:48 -0700 (PDT) X-Received: by 10.221.32.133 with SMTP id sk5mr1052005vcb.27.1379077488912; Fri, 13 Sep 2013 06:04:48 -0700 (PDT) Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by mx.google.com with ESMTPS id fw17si3096995vec.66.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:04:48 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.44 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.44; Received: by mail-vb0-f44.google.com with SMTP id e13so874675vbg.17 for ; Fri, 13 Sep 2013 06:04:48 -0700 (PDT) X-Received: by 10.220.237.208 with SMTP id kp16mr11863466vcb.4.1379077488811; Fri, 13 Sep 2013 06:04:48 -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 u4csp79479vcz; Fri, 13 Sep 2013 06:04:47 -0700 (PDT) X-Received: by 10.68.194.161 with SMTP id hx1mr8656905pbc.164.1379077487312; Fri, 13 Sep 2013 06:04:47 -0700 (PDT) Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) by mx.google.com with ESMTPS id gx9si11186887pac.98.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:04:47 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.180 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.180; Received: by mail-pd0-f180.google.com with SMTP id y10so1218868pdj.25 for ; Fri, 13 Sep 2013 06:04:46 -0700 (PDT) X-Received: by 10.68.169.161 with SMTP id af1mr13437654pbc.22.1379077486914; Fri, 13 Sep 2013 06:04:46 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id fy4sm11672687pbb.1.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:04:46 -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 015/228] cpufreq: blackfin: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:21 +0530 Message-Id: <66cd8db433adb66e71f1628d8af6c6e3be1323cd.1379063063.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-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.212.44 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[] = {