From patchwork Wed Aug 21 14:42:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19387 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 66A16248E6 for ; Wed, 21 Aug 2013 14:44:03 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id l109sf502853yhq.7 for ; Wed, 21 Aug 2013 07:44:03 -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=N3QBk2W7Fg7LMwnEUpJrWeyTM9erCoXdl1fUDzQzRnk=; b=Frp0shfPEDdfiaZKWhve4kBZAT9QhgsQW3Zjp+DrM4Ez9k7b9DRk5bFnrcg9Wkbhgv cBg4A5f0TyEPD9oKTlPz7L/0sqkvdtVV7hnhl9MClyM8QAyR1ksSE/xZ92Xh5CRraOlJ tvH9MkfVS/YKNfeXH64xf0SfXz2gJFVysP4gvoG0CkphqWQVMei9ANyKi6AqmfG7EzVO 42hSRvGDCwG6n1Jy///pqL2HjgktfrJhYfjRuiRdeRfX8Od0smXtGAaFL7KsEVGD3M4x yLFlhG4aUaOmyJbxUILFy0wuBtRHmBtkpumpaFQTLRyW+kaF4jEpAq9EQJQt9sJL+OId Z5cw== X-Received: by 10.58.97.129 with SMTP id ea1mr698431veb.25.1377096243098; Wed, 21 Aug 2013 07:44:03 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.117.129 with SMTP id ke1ls655948qeb.88.gmail; Wed, 21 Aug 2013 07:44:03 -0700 (PDT) X-Received: by 10.52.92.73 with SMTP id ck9mr5779905vdb.2.1377096242976; Wed, 21 Aug 2013 07:44:02 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id aa5si2222061vdc.52.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Aug 2013 07:44:02 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.181 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.181; Received: by mail-vc0-f181.google.com with SMTP id hz10so312261vcb.26 for ; Wed, 21 Aug 2013 07:44:02 -0700 (PDT) X-Gm-Message-State: ALoCoQkUBaG7Zkcjjtb9F00rrHZbKCB4P505oCzTHPvM9++6Tv8mCYmsGSqGv2nt+YqXEtCUuDVD X-Received: by 10.52.178.198 with SMTP id da6mr5714181vdc.26.1377096242841; Wed, 21 Aug 2013 07:44:02 -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 u4csp224604vcz; Wed, 21 Aug 2013 07:44:02 -0700 (PDT) X-Received: by 10.68.111.197 with SMTP id ik5mr46100pbb.171.1377096241984; Wed, 21 Aug 2013 07:44:01 -0700 (PDT) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by mx.google.com with ESMTPS id tl4si6731016pac.21.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Aug 2013 07:44:01 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.48 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.48; Received: by mail-pa0-f48.google.com with SMTP id kp13so889939pab.35 for ; Wed, 21 Aug 2013 07:44:01 -0700 (PDT) X-Received: by 10.68.230.106 with SMTP id sx10mr46336pbc.170.1377096241572; Wed, 21 Aug 2013 07:44:01 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id fk4sm10586234pab.23.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 21 Aug 2013 07:44:00 -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, Viresh Kumar , Kukjin Kim Subject: [PATCH 11/14] cpufreq: s5pv210: use cpufreq_generic_init() routine Date: Wed, 21 Aug 2013 20:12:30 +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.220.181 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: , Use generic cpufreq_generic_init() routine instead of replicating the same code here. 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 efa1080..e3973da 100644 --- a/drivers/cpufreq/s5pv210-cpufreq.c +++ b/drivers/cpufreq/s5pv210-cpufreq.c @@ -511,9 +511,7 @@ static int __init s5pv210_cpu_init(struct cpufreq_policy *policy) s5pv210_dram_conf[1].refresh = (__raw_readl(S5P_VA_DMC1 + 0x30) * 1000); s5pv210_dram_conf[1].freq = clk_get_rate(dmc1_clk); - policy->cpuinfo.transition_latency = 40000; - - return cpufreq_table_validate_and_show(policy, s5pv210_freq_table); + return cpufreq_generic_init(policy, s5pv210_freq_table, 40000); out_dmc1: clk_put(dmc0_clk);