From patchwork Thu Aug 8 13:48:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18860 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2364F246A4 for ; Thu, 8 Aug 2013 13:50:16 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id bq6sf817755qab.10 for ; Thu, 08 Aug 2013 06:50:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state: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=7MOdLCiX//MoPjXxqNhdKXco/akYEwKYLcCoIcP5FPs=; b=gyxJZRt40v5rKlV+j63Phyrle0TXrka33P9xzab68TOIQ7+us72l6rhhyCZgmy1KVh cHRxG1eGu1khhyR6+qaz+tzVSHKz9JvneP2rzm8xV6l0bDiMHCGHIYD7p7GKqp/1b2Vk t5F4P897cODtdcT7MNyEhiZ0jI/8eJsqMm0HEBCJVfrEV8ptLt/tms1+4TSLoIqFZHq5 Joj1TEvqdvUzP2ql39+4BuBW+tSSb1PJhPS2EisvI2K+ro8oqmBOhAP0QBKinGP5M9pr F9z5xskbBuqf+DTjLqFd4++7qVOkMmSrR8dg1uksc3a6L+dgO2nhfhgaY8y+9m43qH2j JUqg== X-Received: by 10.236.207.169 with SMTP id n29mr3360698yho.50.1375969815887; Thu, 08 Aug 2013 06:50:15 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.58.4 with SMTP id m4ls1127561qeq.52.gmail; Thu, 08 Aug 2013 06:50:15 -0700 (PDT) X-Received: by 10.58.34.178 with SMTP id a18mr3070138vej.86.1375969815805; Thu, 08 Aug 2013 06:50:15 -0700 (PDT) Received: from mail-vb0-f52.google.com (mail-vb0-f52.google.com [209.85.212.52]) by mx.google.com with ESMTPS id k11si3090359vcm.117.2013.08.08.06.50.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:50:15 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.52 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.52; Received: by mail-vb0-f52.google.com with SMTP id f12so3214478vbg.11 for ; Thu, 08 Aug 2013 06:50:15 -0700 (PDT) X-Gm-Message-State: ALoCoQkn0HEgsRglobNORlM1CWTS2gSKyplBfcoWCyGcJmWx6MXAfzW34M46F2rufsOvUKPqEkuZ X-Received: by 10.220.164.202 with SMTP id f10mr4005555vcy.25.1375969815710; Thu, 08 Aug 2013 06:50:15 -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 u4csp16747vcz; Thu, 8 Aug 2013 06:50:15 -0700 (PDT) X-Received: by 10.68.210.103 with SMTP id mt7mr6085758pbc.179.1375969814794; Thu, 08 Aug 2013 06:50:14 -0700 (PDT) Received: from mail-pb0-f47.google.com (mail-pb0-f47.google.com [209.85.160.47]) by mx.google.com with ESMTPS id yk3si9735667pac.273.2013.08.08.06.50.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:50:14 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.47 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.47; Received: by mail-pb0-f47.google.com with SMTP id rr4so3213649pbb.20 for ; Thu, 08 Aug 2013 06:50:14 -0700 (PDT) X-Received: by 10.68.131.133 with SMTP id om5mr6157689pbb.148.1375969814396; Thu, 08 Aug 2013 06:50:14 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id yg1sm14420774pbb.1.2013.08.08.06.50.10 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:50:13 -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 , Linus Walleij Subject: [PATCH 11/35] cpufreq: dbx500: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:13 +0530 Message-Id: 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.52 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: Linus Walleij Signed-off-by: Viresh Kumar Acked-by: Linus Walleij --- 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..ea03b92 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; }