From patchwork Fri Sep 13 13:01:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20197 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f71.google.com (mail-qe0-f71.google.com [209.85.128.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1A0D420358 for ; Fri, 13 Sep 2013 13:19:56 +0000 (UTC) Received: by mail-qe0-f71.google.com with SMTP id a11sf1222676qen.10 for ; Fri, 13 Sep 2013 06:19: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=wRsgXAIQNkTLTwl+1vniG1NlYgin3zHoEvp8KC0XeqY=; b=D9ONwNF5cfDnuMlF5b8CIoHN+xt651khFA+JZP9GmqKcWppr+RmkF9rU+gggdGdLJh udOZzws91/b//ydjPwMl+bSR6BUY5AFSGvW9MDkf+roJ0MKXPOryUTwb0pukszB66zmj VWSfMi2XsUnkqmybglo257etSsS/jU7QSWHfysqMb8q97cUywPyuqzlz3r64p6trlbzF DusTqfv4mKOJvdH8Gj4ybUa3CknpqsMgmm09TV/JUfZnvyQc8DaZVVyREah0w+B5B1IY 4WQeCyI73PopZyLPAnoM9Nur3Ygrl/Hb12v1hnpZvhbaNktV3HVDo1uFjbHHqa+WsBUT F4dA== X-Gm-Message-State: ALoCoQlT+sQPeee2e8hWWoV50/1QOZNCRVTy6wInVXh9lBfju363JcELvPipLy+ovWeXRq0Mwf4/ X-Received: by 10.236.167.138 with SMTP id i10mr5431474yhl.9.1379078395766; Fri, 13 Sep 2013 06:19:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.0.236 with SMTP id 12ls1192312qeh.67.gmail; Fri, 13 Sep 2013 06:19:55 -0700 (PDT) X-Received: by 10.220.16.73 with SMTP id n9mr1671046vca.24.1379078395558; Fri, 13 Sep 2013 06:19:55 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id d14si2195104veh.1.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:19:55 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.180 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.180; Received: by mail-vc0-f180.google.com with SMTP id gf11so920658vcb.11 for ; Fri, 13 Sep 2013 06:19:55 -0700 (PDT) X-Received: by 10.52.122.68 with SMTP id lq4mr10129210vdb.21.1379078395480; Fri, 13 Sep 2013 06:19: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 u4csp80300vcz; Fri, 13 Sep 2013 06:19:55 -0700 (PDT) X-Received: by 10.67.15.70 with SMTP id fm6mr15213196pad.109.1379078394592; Fri, 13 Sep 2013 06:19:54 -0700 (PDT) Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by mx.google.com with ESMTPS id if6si7460340pbc.103.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:19:54 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.44 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.44; Received: by mail-pb0-f44.google.com with SMTP id xa7so1229563pbc.17 for ; Fri, 13 Sep 2013 06:19:54 -0700 (PDT) X-Received: by 10.66.119.172 with SMTP id kv12mr15112137pab.34.1379078394187; Fri, 13 Sep 2013 06:19:54 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id bb1sm11745175pbc.10.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:19:53 -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 Subject: [PATCH 143/228] cpufreq: s5pv210: use cpufreq_generic_init() routine Date: Fri, 13 Sep 2013 18:31:29 +0530 Message-Id: <9223cc644b2a73df35e228dd5a815d949988ccdd.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.180 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. 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 30d9bb7..600b4f4 100644 --- a/drivers/cpufreq/s5pv210-cpufreq.c +++ b/drivers/cpufreq/s5pv210-cpufreq.c @@ -543,9 +543,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);