From patchwork Fri Sep 13 12:59:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20072 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 9CCAF202E6 for ; Fri, 13 Sep 2013 13:05:10 +0000 (UTC) Received: by mail-qe0-f70.google.com with SMTP id b4sf1213483qen.1 for ; Fri, 13 Sep 2013 06:05:10 -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=ZeCYYhRazqYuD4lMABYPKB4g65vRx6mgmei+2q+Do0o=; b=WOQSG0xCO3DhpondgLFfMotpqRCTZr9NH18dPqOFf0ipfE2MTTf+SMWk4xIgQ15HyF X5Zixob7B4kfkj1JAB1WlxnB/x+A5FVA3Za/bKxh2hMYDXd3WC+yL2fCfnV8pvC94jHB fTrZsKmXZw6MTfq2SW3fTAi9UVC6+7p7bdgaKNeIkbPMTCoQyJnNdmnrTF/AvVmAO0+e 3Qt8fuCInhdK84O+aqU1A0/weXeJfBwtMy5QyhENWCw2t8TskNHoZf+1M6Xq+kOxUQhF 87R1afWF30jir8OlF+Z5i2WyExdUSe0arMS0b1v1LOd3iFnxucUm24M1A42zqKFB6/2F 7sSg== X-Gm-Message-State: ALoCoQke8T7Zot/FZIo2ibyHIZcqvrEX0AHiPYV+SZ/WT6ttdg52GM89SNVi4xR30fICebER058a X-Received: by 10.236.80.42 with SMTP id j30mr4903683yhe.29.1379077510465; Fri, 13 Sep 2013 06:05:10 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.11.179 with SMTP id r19ls1119953qeb.76.gmail; Fri, 13 Sep 2013 06:05:10 -0700 (PDT) X-Received: by 10.52.230.233 with SMTP id tb9mr9848562vdc.17.1379077510243; Fri, 13 Sep 2013 06:05:10 -0700 (PDT) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id zt2si3078237vec.150.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:05:10 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.175 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.175; Received: by mail-ve0-f175.google.com with SMTP id jy13so905525veb.20 for ; Fri, 13 Sep 2013 06:05:10 -0700 (PDT) X-Received: by 10.58.133.66 with SMTP id pa2mr11804138veb.18.1379077510165; Fri, 13 Sep 2013 06:05:10 -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 u4csp79505vcz; Fri, 13 Sep 2013 06:05:09 -0700 (PDT) X-Received: by 10.68.170.225 with SMTP id ap1mr13391788pbc.133.1379077509252; Fri, 13 Sep 2013 06:05:09 -0700 (PDT) Received: from mail-pb0-f41.google.com (mail-pb0-f41.google.com [209.85.160.41]) by mx.google.com with ESMTPS id gb4si7398434pbb.180.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:05:09 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.41 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.41; Received: by mail-pb0-f41.google.com with SMTP id rp2so1225453pbb.0 for ; Fri, 13 Sep 2013 06:05:08 -0700 (PDT) X-Received: by 10.68.244.2 with SMTP id xc2mr13388365pbc.58.1379077508741; Fri, 13 Sep 2013 06:05:08 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id w6sm11637220pbt.32.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:05:08 -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 018/228] cpufreq: davinci: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:24 +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.128.175 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 d049937..ba03e6f 100644 --- a/drivers/cpufreq/davinci-cpufreq.c +++ b/drivers/cpufreq/davinci-cpufreq.c @@ -138,15 +138,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.