From patchwork Fri Sep 13 12:59:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 2889221 X-Patchwork-Delegate: lethal@linux-sh.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 475D4BFF05 for ; Fri, 13 Sep 2013 14:05:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 98087201A4 for ; Fri, 13 Sep 2013 14:05:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 59B0420108 for ; Fri, 13 Sep 2013 14:05:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757281Ab3IMOFA (ORCPT ); Fri, 13 Sep 2013 10:05:00 -0400 Received: from mail-pb0-f48.google.com ([209.85.160.48]:47430 "EHLO mail-pb0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757618Ab3IMNHx (ORCPT ); Fri, 13 Sep 2013 09:07:53 -0400 Received: by mail-pb0-f48.google.com with SMTP id ma3so1208714pbc.7 for ; Fri, 13 Sep 2013 06:07:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=jzDxY7zCo4tSFMmmYHN/LiSVMygCjw6LEIttyen8lf4=; b=dpALQxXlcigJbNH8zrMp1ffu+RayMOWktNqJlADHDLhmSn/zmAtsovHJcmachiaBDC QdwJ7hr8lgN2XBp8anw95RljMAB30gYQaRiRySNBD9ucXqO6w6NpTAygjumLe+DiBbLY LW7ckZqf+RL9DVQuyuiW4L9TRnSvVW9P4nrBgZPh0SyLf2dVXKxYVi4rmK3KwLLKbmyF KeNIzaysXt4GSRgs0dlBlTL8aJfLny3Jf9ygA2vw9ndCP8GBSToq8DveKHQaMiLHjng7 F3J7G8B94DCLs8ptg2YYwPI+JMISqTvX0XoK/Pe/VquYsX81pRe3UvZL7DJVqX8qGGkB A3rQ== X-Gm-Message-State: ALoCoQntqRXUGC7fo2eSk7TTvgHFujh11Jkdc1vTK1ybW4pRSdMNapj9xWDK9fg88EFGLyTbM5tp X-Received: by 10.68.221.233 with SMTP id qh9mr13369901pbc.103.1379077673391; Fri, 13 Sep 2013 06:07:53 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id ys4sm11680511pbb.9.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:07:52 -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 , Paul Mundt , linux-sh@vger.kernel.org Subject: [PATCH 041/228] cpufreq: sh: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:47 +0530 Message-Id: <04eded57c208c65caa64ac44cea9a1eee8507f0d.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: Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Cc: Paul Mundt Cc: linux-sh@vger.kernel.org Signed-off-by: Viresh Kumar --- drivers/cpufreq/sh-cpufreq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/cpufreq/sh-cpufreq.c b/drivers/cpufreq/sh-cpufreq.c index f671aa1..f1fb944 100644 --- a/drivers/cpufreq/sh-cpufreq.c +++ b/drivers/cpufreq/sh-cpufreq.c @@ -117,9 +117,9 @@ static int sh_cpufreq_cpu_init(struct cpufreq_policy *policy) if (freq_table) { int result; - result = cpufreq_frequency_table_cpuinfo(policy, freq_table); - if (!result) - cpufreq_frequency_table_get_attr(freq_table, cpu); + result = cpufreq_table_validate_and_show(policy, freq_table); + if (result) + return result; } else { dev_notice(dev, "no frequency table found, falling back " "to rate rounding.\n");