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: 20095 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f69.google.com (mail-qe0-f69.google.com [209.85.128.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BF9B7202E6 for ; Fri, 13 Sep 2013 13:07:55 +0000 (UTC) Received: by mail-qe0-f69.google.com with SMTP id 1sf1219881qec.0 for ; Fri, 13 Sep 2013 06:07:55 -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=jzDxY7zCo4tSFMmmYHN/LiSVMygCjw6LEIttyen8lf4=; b=K4Ri9DVZ5iDGGH52LiULli2qMn4iIcwa0W7uE6O/FQyq4D1FQbhwUlUXJuAQtrnUoC O+808D3uTcc5gEjvLvMhRV3E9ZVIT0imdWxrq0gSM5+TZEj1G6VFQCp0w+5u9bjhhITR vUdnMCCwdooRrbiNUA53kAKAWUaqnr4IQNIUQ99t66E3kEWHbOXAAqyClQbLbIsBCA3c 3/6yaTq/NKo7SRJyyMSIUpBhBzZY4zMGbUmZgK84LdSew9Ozsr6nHy+xzM/5Y0sDTuCM T1fg0Y9EFgLeg2pFcdnUNjtKzt8dVwcff7cP+5QXxHWdhTEk5mOr3Ojf7ZO2/AuAMEz8 si5w== X-Gm-Message-State: ALoCoQnA+M2+nPisbsytS8ivf1FWN8JNoQTa/oqj7D6sCfB2LzU71vS216xFSPPdOmU9FppMa/tD X-Received: by 10.236.167.138 with SMTP id i10mr5413595yhl.9.1379077675512; Fri, 13 Sep 2013 06:07:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.39.193 with SMTP id r1ls1215169qek.30.gmail; Fri, 13 Sep 2013 06:07:55 -0700 (PDT) X-Received: by 10.58.152.3 with SMTP id uu3mr11894845veb.16.1379077675284; Fri, 13 Sep 2013 06:07:55 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id uy8si3103039vcb.55.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:07:55 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id if17so422262vcb.4 for ; Fri, 13 Sep 2013 06:07:55 -0700 (PDT) X-Received: by 10.58.235.193 with SMTP id uo1mr11845612vec.6.1379077675133; Fri, 13 Sep 2013 06:07:55 -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 u4csp79690vcz; Fri, 13 Sep 2013 06:07:54 -0700 (PDT) X-Received: by 10.68.76.34 with SMTP id h2mr13504519pbw.20.1379077673797; Fri, 13 Sep 2013 06:07:53 -0700 (PDT) Received: from mail-pd0-f173.google.com (mail-pd0-f173.google.com [209.85.192.173]) by mx.google.com with ESMTPS id tb4si11146457pab.232.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:07:53 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.173 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.173; Received: by mail-pd0-f173.google.com with SMTP id p10so1230677pdj.4 for ; Fri, 13 Sep 2013 06:07:53 -0700 (PDT) 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: 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.220.173 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 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");