From patchwork Thu Aug 8 13:48:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18870 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2CD72246A4 for ; Thu, 8 Aug 2013 13:51:28 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id a11sf1191991qcx.5 for ; Thu, 08 Aug 2013 06:51:27 -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=+Lk5U4M8MDwijLhsoWMIgRou9AyHvMEOVir9kNp33ys=; b=P7NpltrDtud2hdRuiQRQLH6LOlMADZPgIK5b1iwrAIjXdDhaw59HZE/0QnOATt8GZH khrIkVnJIWBsyxHCv7YNvkbyZVUcTMB6s6ETapStZYZZG0wtsX0hF6JwLBoeTU6Zdf/u cY1DCj8rWo7lLnupTeM9i4uiMQokgPm/HftAPfrR5Usf4vrCBLXsFvaYPicxVDI+dORB +DMkA9cKf3F3U4NF3OlUffS9tFdggn+UbuQUY8Ivb5Rb4cawT8uiiTciQL6On+go0LkR YfusabOkVbkP96npDwBEsRV19MpqdHyDoQRyQLRreR6QOI832FsMdtUOV6H5GCknP0D1 7ULw== X-Received: by 10.236.126.244 with SMTP id b80mr3456473yhi.31.1375969887918; Thu, 08 Aug 2013 06:51:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.81.200 with SMTP id c8ls1105725qey.85.gmail; Thu, 08 Aug 2013 06:51:27 -0700 (PDT) X-Received: by 10.58.109.5 with SMTP id ho5mr3235378veb.10.1375969887806; Thu, 08 Aug 2013 06:51:27 -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 sd9si3095503vdc.52.2013.08.08.06.51.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:27 -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 f12so3171694vbg.25 for ; Thu, 08 Aug 2013 06:51:27 -0700 (PDT) X-Gm-Message-State: ALoCoQnv2ak6exFx3v8NT+H4mpHg/Udw5627qU6uTsXIWSpeqNCKMVdOJeii777iwm5Ok0VX0YJW X-Received: by 10.220.164.202 with SMTP id f10mr4008619vcy.25.1375969887726; Thu, 08 Aug 2013 06:51:27 -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 u4csp16816vcz; Thu, 8 Aug 2013 06:51:27 -0700 (PDT) X-Received: by 10.68.245.165 with SMTP id xp5mr6269250pbc.66.1375969886799; Thu, 08 Aug 2013 06:51:26 -0700 (PDT) Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by mx.google.com with ESMTPS id qb10si9738169pac.278.2013.08.08.06.51.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:26 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.44 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.44; Received: by mail-pb0-f44.google.com with SMTP id xa7so3234464pbc.31 for ; Thu, 08 Aug 2013 06:51:26 -0700 (PDT) X-Received: by 10.66.235.39 with SMTP id uj7mr6205206pac.122.1375969886392; Thu, 08 Aug 2013 06:51:26 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id xe9sm14395533pbc.21.2013.08.08.06.51.21 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:25 -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 , Santosh Shilimkar Subject: [PATCH 21/35] cpufreq: omap: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:23 +0530 Message-Id: <0cc200b71d5c1584c80845a1384aef1919fd779b.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.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: Santosh Shilimkar Signed-off-by: Viresh Kumar Acked-by: Santosh Shilimkar --- drivers/cpufreq/omap-cpufreq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c index f31fcfc..b68ce4e 100644 --- a/drivers/cpufreq/omap-cpufreq.c +++ b/drivers/cpufreq/omap-cpufreq.c @@ -191,12 +191,10 @@ static int omap_cpu_init(struct cpufreq_policy *policy) atomic_inc_return(&freq_table_users); - result = cpufreq_frequency_table_cpuinfo(policy, freq_table); + result = cpufreq_table_validate_and_show(policy, freq_table); if (result) goto fail_table; - cpufreq_frequency_table_get_attr(freq_table, policy->cpu); - policy->cur = omap_getspeed(policy->cpu); /*