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: 18859 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f70.google.com (mail-vb0-f70.google.com [209.85.212.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 67938246A4 for ; Thu, 8 Aug 2013 13:50:09 +0000 (UTC) Received: by mail-vb0-f70.google.com with SMTP id h10sf3522480vbh.1 for ; Thu, 08 Aug 2013 06:50:09 -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=GVmJ9u9Inmc0NmlsLHlBjuusEu48t1VkJv8el5MzauA=; b=TA6l5kh/PLGrb7vhIWsg1o+HkFPPnLG3ql17/FaLP2dTne6LeXTtzTkf/eJZhFWOyt JrRSS7v7hpvSfSZNZbBrZnxM7etIQS4RMK5nhYXl8SGLT7LbK63Z1G0yAI+AG2sSJbRR TlqOpe1v+TgUq6NVTUDk7QTG+/oboOmOVJ4SLNmkLbU2B8sp3IQGQBSVtFS+lBrPJ0hZ yLAuVGJAaXf0rGGPS52C4VroHMsx/VqAqqH8EVSYrQVB+QZzh4jQyirNsTN2Ksrnlvbu aNgkwqcAZm1obqfgWgHWqK4fkmUsO9nSskuDqSqCnXALunkbruBhCz6m4reZeZ6PSfyD EHXA== X-Received: by 10.236.125.200 with SMTP id z48mr3395198yhh.55.1375969808999; Thu, 08 Aug 2013 06:50:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.71.49 with SMTP id r17ls961666qeu.51.gmail; Thu, 08 Aug 2013 06:50:08 -0700 (PDT) X-Received: by 10.52.165.194 with SMTP id za2mr1122990vdb.64.1375969808889; Thu, 08 Aug 2013 06:50:08 -0700 (PDT) Received: from mail-vb0-f42.google.com (mail-vb0-f42.google.com [209.85.212.42]) by mx.google.com with ESMTPS id y4si3095457vcn.59.2013.08.08.06.50.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:50:08 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.42 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.42; Received: by mail-vb0-f42.google.com with SMTP id e12so3218062vbg.15 for ; Thu, 08 Aug 2013 06:50:08 -0700 (PDT) X-Gm-Message-State: ALoCoQn7Ws6jbh1xp7e6GqFbCVZ2zD9mDRUiRqkTGfVEOrqrHiVmE5qscEZYbJqowHoIkrGlYRt/ X-Received: by 10.220.164.138 with SMTP id e10mr4042209vcy.27.1375969808580; Thu, 08 Aug 2013 06:50:08 -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 u4csp16733vcz; Thu, 8 Aug 2013 06:50:08 -0700 (PDT) X-Received: by 10.68.211.138 with SMTP id nc10mr6146892pbc.162.1375969807723; Thu, 08 Aug 2013 06:50:07 -0700 (PDT) Received: from mail-pb0-f43.google.com (mail-pb0-f43.google.com [209.85.160.43]) by mx.google.com with ESMTPS id mu18si9754074pab.176.2013.08.08.06.50.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:50:07 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.43 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.43; Received: by mail-pb0-f43.google.com with SMTP id md4so3227037pbc.30 for ; Thu, 08 Aug 2013 06:50:07 -0700 (PDT) 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 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 , Sekhar Nori 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-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.42 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: 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.