From patchwork Fri Sep 13 12:59:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20080 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f70.google.com (mail-qe0-f70.google.com [209.85.128.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E0061202E6 for ; Fri, 13 Sep 2013 13:06:12 +0000 (UTC) Received: by mail-qe0-f70.google.com with SMTP id b4sf1208350qen.9 for ; Fri, 13 Sep 2013 06:06:12 -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=sdrM4OhF4LBOs0ILK9sy6B3YNoCuSztLZP7Crz8Htt4=; b=DkEDu3ua6ZyAU7QdFPUjrc+5hTp1qQBgzIHUryplS9z16FlLbDcw4OhPpI/qx5vkId yXc9lcjMFCi1D7XPO+d7sckVZMHLqYAt7pIOA8dsro9i6hfN8N/u39feJx5hcnEzVhyu xBkWUPAHHJG327u1oUhTZf3q+aYz/wP7wkyWy+KqbWJPsosFvbX8SG2kQsgYIDRyv8iT Vep2OTrDSW661RlUdrprTo8KYUkxtgNDXPsMNzmK5WeXmKuTE6RAYHK7n8gr2ZUdQ2aU EiTZMfBsYIdbvPg3Jx2jFlQmDjWRLEhON/wzglKMl/xIFes2wRKy4t7gPMwck/wvgaMp ILEA== X-Gm-Message-State: ALoCoQlcVw59jabiQjAtNI8eJRWLyUZhhaLvbIbgr4mY9755G0vjxw+Yke6zMnoWwJ6qdUHRrAHU X-Received: by 10.236.2.5 with SMTP id 5mr4941004yhe.23.1379077572729; Fri, 13 Sep 2013 06:06:12 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.5.9 with SMTP id o9ls1131441qeo.49.gmail; Fri, 13 Sep 2013 06:06:12 -0700 (PDT) X-Received: by 10.52.110.98 with SMTP id hz2mr9184901vdb.1.1379077572496; Fri, 13 Sep 2013 06:06:12 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id ch11si3108611ved.25.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:12 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.174 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.174; Received: by mail-ve0-f174.google.com with SMTP id jy13so917534veb.19 for ; Fri, 13 Sep 2013 06:06:12 -0700 (PDT) X-Received: by 10.58.190.34 with SMTP id gn2mr16447vec.34.1379077572427; Fri, 13 Sep 2013 06:06:12 -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 u4csp79566vcz; Fri, 13 Sep 2013 06:06:10 -0700 (PDT) X-Received: by 10.66.186.204 with SMTP id fm12mr1533046pac.189.1379077570476; Fri, 13 Sep 2013 06:06:10 -0700 (PDT) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by mx.google.com with ESMTPS id yk3si11218248pac.12.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:10 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.53 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.53; Received: by mail-pa0-f53.google.com with SMTP id lb1so2515605pab.12 for ; Fri, 13 Sep 2013 06:06:10 -0700 (PDT) X-Received: by 10.66.216.162 with SMTP id or2mr1984870pac.179.1379077570020; Fri, 13 Sep 2013 06:06:10 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id om2sm11645586pbc.30.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:09 -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 026/228] cpufreq: longhaul: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:32 +0530 Message-Id: <6f33640445b8b2129544a6ade3e365e917a85805.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.128.174 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/longhaul.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/cpufreq/longhaul.c b/drivers/cpufreq/longhaul.c index 4ada1cc..70b66fd 100644 --- a/drivers/cpufreq/longhaul.c +++ b/drivers/cpufreq/longhaul.c @@ -921,13 +921,7 @@ static int longhaul_cpu_init(struct cpufreq_policy *policy) policy->cpuinfo.transition_latency = 200000; /* nsec */ policy->cur = calc_speed(longhaul_get_cpu_mult()); - ret = cpufreq_frequency_table_cpuinfo(policy, longhaul_table); - if (ret) - return ret; - - cpufreq_frequency_table_get_attr(longhaul_table, policy->cpu); - - return 0; + return cpufreq_table_validate_and_show(policy, longhaul_table); } static int longhaul_cpu_exit(struct cpufreq_policy *policy)