Message ID | d5846c490ebcbb37458742f13749b3f7722a4827.1379063063.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBPU7ZSIQKGQE6MLMN2A@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 40A1920F2F for <linaro@patches.linaro.org>; Fri, 13 Sep 2013 13:14:38 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id a41sf1235473yho.10 for <linaro@patches.linaro.org>; Fri, 13 Sep 2013 06:14:38 -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=Vug5OzxXN/EglJzrGAUShM5W2PNh+gJH/5HLq4BXLsM=; b=m4ciOR+w8VV+NzmlY5P+/eg93s98uKMjzDGzY4esj0etdeUGNyveq8eK1TBaKwPOAS z/+2yKUGnfo6wn1FwR0/miL/j08drzqnXXkpI5aiNiH6d3D0NCuWLB6ewUxkLTUrrIqb e9mhnPuPryyFj3bpc8DdwGSwIlcfGHqKHRlIeATsK8TeV9hOgr4t9EtlAyi6QlgqMqG+ MtgtdeIJhkgmkV9LrJKiIrDPB1xgAO4DFd3RE/nQJQYo4HwTI+47gnWTYE51k8SjOYzy Ng1l1Ks817QK0swWW3G4+ByHacs11CfIdjZweWU1zBGPaeoxTMz/DWC33s8NBqTCb7tp rpOA== X-Gm-Message-State: ALoCoQlS3M9RH3CXq3MpDW9o7SgYNDjl/sKd/zWYJJEjr4nhIeLrro3APwxVfLtADLSp+f5tUSfp X-Received: by 10.236.223.130 with SMTP id v2mr5149872yhp.34.1379078078036; Fri, 13 Sep 2013 06:14:38 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.58.244 with SMTP id u20ls1133786qeq.74.gmail; Fri, 13 Sep 2013 06:14:37 -0700 (PDT) X-Received: by 10.52.98.131 with SMTP id ei3mr10046640vdb.4.1379078077758; Fri, 13 Sep 2013 06:14:37 -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 c8si3109936vcq.63.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:14:37 -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 w16so879828vbb.22 for <patchwork-forward@linaro.org>; Fri, 13 Sep 2013 06:14:37 -0700 (PDT) X-Received: by 10.52.165.131 with SMTP id yy3mr5971128vdb.25.1379078077682; Fri, 13 Sep 2013 06:14:37 -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 u4csp80013vcz; Fri, 13 Sep 2013 06:14:37 -0700 (PDT) X-Received: by 10.66.182.36 with SMTP id eb4mr15028723pac.125.1379078076839; Fri, 13 Sep 2013 06:14:36 -0700 (PDT) Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by mx.google.com with ESMTPS id mo9si7446076pbc.96.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:14:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.42 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.42; Received: by mail-pa0-f42.google.com with SMTP id lj1so2522680pab.15 for <patches@linaro.org>; Fri, 13 Sep 2013 06:14:36 -0700 (PDT) X-Received: by 10.68.48.166 with SMTP id m6mr13204501pbn.105.1379078076420; Fri, 13 Sep 2013 06:14:36 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id yg3sm18025286pab.16.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:14:35 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> 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 <viresh.kumar@linaro.org>, Sekhar Nori <nsekhar@ti.com> Subject: [PATCH 098/228] cpufreq: davinci: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:30:44 +0530 Message-Id: <d5846c490ebcbb37458742f13749b3f7722a4827.1379063063.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: <cover.1379063063.git.viresh.kumar@linaro.org> References: <cover.1379063063.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1379063063.git.viresh.kumar@linaro.org> References: <cover.1379063063.git.viresh.kumar@linaro.org> 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: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/drivers/cpufreq/davinci-cpufreq.c b/drivers/cpufreq/davinci-cpufreq.c index f228642..55cf094 100644 --- a/drivers/cpufreq/davinci-cpufreq.c +++ b/drivers/cpufreq/davinci-cpufreq.c @@ -136,8 +136,6 @@ static int davinci_cpu_init(struct cpufreq_policy *policy) return result; } - policy->cur = davinci_getspeed(0); - result = cpufreq_table_validate_and_show(policy, freq_table); if (result) { pr_err("%s: cpufreq_table_validate_and_show() failed",
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Cc: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/cpufreq/davinci-cpufreq.c | 2 -- 1 file changed, 2 deletions(-)