From patchwork Thu Aug 8 13:48:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18878 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f200.google.com (mail-gh0-f200.google.com [209.85.160.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D8EBD246A4 for ; Thu, 8 Aug 2013 13:52:24 +0000 (UTC) Received: by mail-gh0-f200.google.com with SMTP id 10sf728748ghy.3 for ; Thu, 08 Aug 2013 06:52:24 -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=VOfbSFbnQPSO0Ihr3kzm4nWy8pomBbhR40LAhRHCuxs=; b=OxJ1olZp3KQ5AkuCydk11boJyhjevnxmCPNFbKvE+67ZvzVK5NmTS7ob00taY1JeIa g5n46k/BgA2mDwQA7NdWZlgkEW+iEHWxSi00F0YJYKSlE/mHPuJqJKfhLzU2zFKs5NQF d37jL7N4wmrPdOCPoRBxc5F6B1nLeXKONP/mXzt376AvI8pE6SOvX5syTY9tal9T7YH/ 6+z1cFh0UH2E9oZxw3R4biiA4tqRZ4mkscYxeRHJ5sI61e45FTMyLKA3EmRaHV/FIMK6 WevCftUmdwba6Uf/00CAKEgv87eb2oUzMnMyfQp8lW89EeH5w+Mq7fhHzSoufcOaf7lG Ai9A== X-Received: by 10.236.150.203 with SMTP id z51mr3340411yhj.23.1375969944615; Thu, 08 Aug 2013 06:52:24 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.58.244 with SMTP id u20ls1052469qeq.74.gmail; Thu, 08 Aug 2013 06:52:24 -0700 (PDT) X-Received: by 10.220.237.208 with SMTP id kp16mr4074145vcb.4.1375969944517; Thu, 08 Aug 2013 06:52:24 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id xf6si3091989vcb.128.2013.08.08.06.52.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:52:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.174 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.174; Received: by mail-ve0-f174.google.com with SMTP id d10so3048378vea.5 for ; Thu, 08 Aug 2013 06:52:24 -0700 (PDT) X-Gm-Message-State: ALoCoQkj4K7hhHJn4voOIJU97z8hd3cpuOxYyhgt2HWQkzV3tGnMSm0SvYDrV7kSI1kAPyxfDLzr X-Received: by 10.52.164.16 with SMTP id ym16mr2630685vdb.32.1375969944444; Thu, 08 Aug 2013 06:52:24 -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 u4csp16872vcz; Thu, 8 Aug 2013 06:52:23 -0700 (PDT) X-Received: by 10.66.150.138 with SMTP id ui10mr6215981pab.19.1375969943602; Thu, 08 Aug 2013 06:52:23 -0700 (PDT) Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by mx.google.com with ESMTPS id gx9si9759342pac.185.2013.08.08.06.52.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:52:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.52 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.52; Received: by mail-pa0-f52.google.com with SMTP id kq13so3448167pab.39 for ; Thu, 08 Aug 2013 06:52:23 -0700 (PDT) X-Received: by 10.68.103.228 with SMTP id fz4mr6232678pbb.101.1375969943209; Thu, 08 Aug 2013 06:52:23 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id wr9sm14423766pbc.7.2013.08.08.06.52.19 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:52:22 -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 , Kukjin Kim Subject: [PATCH 29/35] cpufreq: s5pv210: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:31 +0530 Message-Id: <2f893d48637b41518ee16040735dbc984700cb91.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.174 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: Kukjin Kim Signed-off-by: Viresh Kumar --- drivers/cpufreq/s5pv210-cpufreq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c index 5c77570..c266a7e 100644 --- a/drivers/cpufreq/s5pv210-cpufreq.c +++ b/drivers/cpufreq/s5pv210-cpufreq.c @@ -553,11 +553,9 @@ static int __init s5pv210_cpu_init(struct cpufreq_policy *policy) policy->cur = policy->min = policy->max = s5pv210_getspeed(0); - cpufreq_frequency_table_get_attr(s5pv210_freq_table, policy->cpu); - policy->cpuinfo.transition_latency = 40000; - return cpufreq_frequency_table_cpuinfo(policy, s5pv210_freq_table); + return cpufreq_table_validate_and_show(policy, s5pv210_freq_table); out_dmc1: clk_put(dmc0_clk);