From patchwork Thu Aug 8 13:48:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18880 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f71.google.com (mail-vb0-f71.google.com [209.85.212.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 97A9E246A4 for ; Thu, 8 Aug 2013 13:52:42 +0000 (UTC) Received: by mail-vb0-f71.google.com with SMTP id g17sf3525076vbg.2 for ; Thu, 08 Aug 2013 06:52:42 -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=PqCGsirhbMM06htKaYcuAmG2kH519pw86oD4822trSc=; b=JkkkLQ1N3euh+rJNIarrmab1hBzJYHXxrKilUKtgDzpo1mbiFXaEOJ2ARYmfNaWJqS aQUpQoFEYIDHB2nV5H3i8q8M4ITeNesyEtnlbyv3aVUcpWllZhMpeWtF1Nyyk6qKQcpf 84Eyg9I/naWEnJ/ew6J8I0v4GZPDYApx4HdoWYcljZAbIe2gjg4WB1SROZRsZtyikMLU P/Pp2Snr6C+DYZfxM2m2I4eWaS2NRODAXWvxYhro51i90ybhRJGDdyrfB8Gg/ctS97lE UUj7NE4LPjPGfPbrERu1lgGirz65azVcfF5gNhj9CnRFebnG0FYnPBdZaWtuQCYT+Tkc 7i3Q== X-Received: by 10.236.111.40 with SMTP id v28mr3350907yhg.27.1375969962291; Thu, 08 Aug 2013 06:52:42 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.53.103 with SMTP id a7ls1055398qep.90.gmail; Thu, 08 Aug 2013 06:52:42 -0700 (PDT) X-Received: by 10.52.38.162 with SMTP id h2mr2685150vdk.16.1375969962177; Thu, 08 Aug 2013 06:52:42 -0700 (PDT) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by mx.google.com with ESMTPS id y4si3091621vcn.134.2013.08.08.06.52.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:52:42 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.182 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.182; Received: by mail-ve0-f182.google.com with SMTP id m1so3044664ves.41 for ; Thu, 08 Aug 2013 06:52:42 -0700 (PDT) X-Gm-Message-State: ALoCoQnmOOswY94c6T+FUlgFpUFr1P4WTUuKC4iytQaRrq86Lm+9NB1ueImfgU0SfArCuJvcfwdb X-Received: by 10.52.180.229 with SMTP id dr5mr2679810vdc.20.1375969962106; Thu, 08 Aug 2013 06:52:42 -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 u4csp16888vcz; Thu, 8 Aug 2013 06:52:41 -0700 (PDT) X-Received: by 10.66.253.69 with SMTP id zy5mr6351687pac.29.1375969961254; Thu, 08 Aug 2013 06:52:41 -0700 (PDT) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by mx.google.com with ESMTPS id xx2si1257185pac.111.2013.08.08.06.52.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:52:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.43 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.43; Received: by mail-pa0-f43.google.com with SMTP id hz10so3475427pad.2 for ; Thu, 08 Aug 2013 06:52:40 -0700 (PDT) X-Received: by 10.68.137.170 with SMTP id qj10mr6261711pbb.31.1375969960855; Thu, 08 Aug 2013 06:52:40 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id x8sm14371721pbb.39.2013.08.08.06.52.36 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:52:40 -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 31/35] cpufreq: sh: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:33 +0530 Message-Id: <59aad752560cd39629fa415382ba0fb0e4541ac6.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.128.182 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: 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 ffc6d24..1362e88 100644 --- a/drivers/cpufreq/sh-cpufreq.c +++ b/drivers/cpufreq/sh-cpufreq.c @@ -120,9 +120,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");