From patchwork Fri Sep 13 12:59:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20091 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f198.google.com (mail-vc0-f198.google.com [209.85.220.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BAD4E202E6 for ; Fri, 13 Sep 2013 13:07:27 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id ht10sf1187548vcb.9 for ; Fri, 13 Sep 2013 06:07:27 -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=VOfbSFbnQPSO0Ihr3kzm4nWy8pomBbhR40LAhRHCuxs=; b=QfdMxiwzHkiD0vmlJgZ9jk/Z7NKB+zxZ8On/88apXB0/L1Bd45XjhLZPKFP2CA6Ov8 lj8xkj9U/dx1OYzHQf9KiB20p7t+eU6nNUDFJsOKMm/EPBR69dLveCKAlqkYnTxuGuVT dZMd74PFh0mIYrs6VJXRd/6haLzaUj9ZEj9iiN7bdzbtPwx9/oN5EklayMHXzrx3EQKD 0bzZTN6G+6QJb56SSuelnmYVkODQCy+QjVBzYyEQg8yxAYasu6Dqgq34qaxurPdzBXa8 6B8VcYBthfLx6scFPOhwnY26ijyWRySKCIXyMb2kUu71MSjJdMieG/p6Xze9wNJHjdSQ /e9A== X-Gm-Message-State: ALoCoQl4/iElyFEJjpXMHym+m60V6wL41bkRfofRTF75YIApnl1ko7rxgzd96o4Aw9LWvlKjtONA X-Received: by 10.236.26.202 with SMTP id c50mr5009113yha.14.1379077647496; Fri, 13 Sep 2013 06:07:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.15.198 with SMTP id z6ls1141540qec.63.gmail; Fri, 13 Sep 2013 06:07:27 -0700 (PDT) X-Received: by 10.52.24.4 with SMTP id q4mr636221vdf.34.1379077647247; Fri, 13 Sep 2013 06:07:27 -0700 (PDT) Received: from mail-vb0-f49.google.com (mail-vb0-f49.google.com [209.85.212.49]) by mx.google.com with ESMTPS id he13si3087832veb.121.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:07:27 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.49 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.49; Received: by mail-vb0-f49.google.com with SMTP id w16so868678vbb.8 for ; Fri, 13 Sep 2013 06:07:27 -0700 (PDT) X-Received: by 10.52.157.134 with SMTP id wm6mr5824759vdb.26.1379077647166; Fri, 13 Sep 2013 06:07: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 u4csp79658vcz; Fri, 13 Sep 2013 06:07:26 -0700 (PDT) X-Received: by 10.66.230.138 with SMTP id sy10mr15427332pac.103.1379077646260; Fri, 13 Sep 2013 06:07:26 -0700 (PDT) Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by mx.google.com with ESMTPS id pi7si7384743pbc.291.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:07:26 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.179 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.179; Received: by mail-pd0-f179.google.com with SMTP id v10so1218646pde.38 for ; Fri, 13 Sep 2013 06:07:25 -0700 (PDT) X-Received: by 10.68.203.34 with SMTP id kn2mr13254595pbc.82.1379077645834; Fri, 13 Sep 2013 06:07:25 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id im4sm11648482pbc.34.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:07: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 , Kukjin Kim Subject: [PATCH 037/228] cpufreq: s5pv210: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:43 +0530 Message-Id: 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.49 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);