From patchwork Fri Sep 13 12:59:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20073 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f200.google.com (mail-ye0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B1123202E6 for ; Fri, 13 Sep 2013 13:05:18 +0000 (UTC) Received: by mail-ye0-f200.google.com with SMTP id r3sf1149244yen.7 for ; Fri, 13 Sep 2013 06:05:18 -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=ANEuICiZdAL4cszDNCQyKJ9ITD7UWGjLHr5k+9fqaXo=; b=IeZPOWSBDMUSHuAX8Zd+a1kh1Mm82lQBf1yU/96bMu3+JV9YhukgLfMmG867e/T0kv j0+ggXBN1EeqDujuWv/5DziwUgqNyGKz+OQMRZZ18K+W8NUeevUl6+bVodPfiD9XKqDX fpCnlUNtkFrHMUVnfVYKKwisp2TRhd89V/zQq6gXRsgWzyiIS1t5F0V0DOAMVDh228as WoFEL9WdhnykpHclP4CoQxoOEYw6b6Ar6jqxNwBtH06smqV74ZPxPbkqw6N9fes1rlfx 63vEasdSU/Bxrg6XemXpVIj49AMibm4WFV6ESjIBIc0iNBXKin51Z3+uT1fG4ZwvDsgU rYLw== X-Gm-Message-State: ALoCoQn8qKZGixISYO9rcqfibBScxd76A/Bl2FIQydhU3f0aFsO4WtBftiR+pBGireehDAzLIicU X-Received: by 10.236.189.37 with SMTP id b25mr661429yhn.48.1379077518455; Fri, 13 Sep 2013 06:05:18 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.86.161 with SMTP id q1ls1121603qez.13.gmail; Fri, 13 Sep 2013 06:05:18 -0700 (PDT) X-Received: by 10.59.8.232 with SMTP id dn8mr11871614ved.8.1379077518231; Fri, 13 Sep 2013 06:05:18 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id ee8si3106769vdc.2.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:05:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.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.220.174; Received: by mail-vc0-f174.google.com with SMTP id gd11so889568vcb.33 for ; Fri, 13 Sep 2013 06:05:18 -0700 (PDT) X-Received: by 10.220.186.202 with SMTP id ct10mr12130692vcb.14.1379077518120; Fri, 13 Sep 2013 06:05:18 -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 u4csp79512vcz; Fri, 13 Sep 2013 06:05:16 -0700 (PDT) X-Received: by 10.68.197.104 with SMTP id it8mr13296715pbc.17.1379077516414; Fri, 13 Sep 2013 06:05:16 -0700 (PDT) Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by mx.google.com with ESMTPS id to1si11143902pab.225.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:05:16 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.42 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.42; Received: by mail-pa0-f42.google.com with SMTP id lj1so2519274pab.29 for ; Fri, 13 Sep 2013 06:05:16 -0700 (PDT) X-Received: by 10.66.192.8 with SMTP id hc8mr15115433pac.66.1379077516001; Fri, 13 Sep 2013 06:05:16 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id w6sm11638033pbt.32.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:05:15 -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 019/228] cpufreq: dbx500: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:25 +0530 Message-Id: <41b3ec3ebb8abdaae0082675814ef46094311ea5.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.220.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(). Acked-by: Linus Walleij Signed-off-by: Viresh Kumar --- drivers/cpufreq/dbx500-cpufreq.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/cpufreq/dbx500-cpufreq.c b/drivers/cpufreq/dbx500-cpufreq.c index 26321cd..8a484e9 100644 --- a/drivers/cpufreq/dbx500-cpufreq.c +++ b/drivers/cpufreq/dbx500-cpufreq.c @@ -87,10 +87,8 @@ static int dbx500_cpufreq_init(struct cpufreq_policy *policy) int res; /* get policy fields based on the table */ - res = cpufreq_frequency_table_cpuinfo(policy, freq_table); - if (!res) - cpufreq_frequency_table_get_attr(freq_table, policy->cpu); - else { + res = cpufreq_table_validate_and_show(policy, freq_table); + if (res) { pr_err("dbx500-cpufreq: Failed to read policy table\n"); return res; }