From patchwork Wed Aug 14 13:32:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19144 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A98FC2390D for ; Wed, 14 Aug 2013 13:36:40 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id s1sf1802395qcw.8 for ; Wed, 14 Aug 2013 06:36:40 -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=IDbfkhkCVJ1bLzebmAJNEootEMbxwvIgUxeFM50a+Lk=; b=iHmluUp5f21YjaVtr4e/MeJwywr6egscNb3FrQTqGr0dpRI9QkE+GyV2poGDkEL3DY AM9QEIWHrNW2fA378PsFxCfGTfYr2zeyF+rXwieFAlfUnIjwG13ZoD/wjNVjf6q7hav0 OGKsq0SI2oLO9wcZgzBt82px5qg9T6FEXVYu/yay5w9QGzmRAE3on8O6LR2JoGgikU8q E4a4BA4lw97B9FXbCen1XLuQ2SMn8sGmot3QDy50v2B1pMMn3SDOJD/OM/RcVLpiEoNl cMUtQfIKw2YflvZbpJSBSaBPJxnftJhZ6/wAN639oY4TI93W0H6RwP1rbLxI1VVFe2wQ zcxw== X-Received: by 10.52.164.45 with SMTP id yn13mr2154825vdb.5.1376487400447; Wed, 14 Aug 2013 06:36:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.96.9 with SMTP id do9ls2998354qeb.80.gmail; Wed, 14 Aug 2013 06:36:40 -0700 (PDT) X-Received: by 10.52.180.229 with SMTP id dr5mr8165663vdc.20.1376487400345; Wed, 14 Aug 2013 06:36:40 -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 vg3si11031507vec.62.2013.08.14.06.36.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:40 -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 gf11so5010109vcb.25 for ; Wed, 14 Aug 2013 06:36:40 -0700 (PDT) X-Gm-Message-State: ALoCoQnM9cz3O8mCzro/eMtE/c5ZSlsmxUBce+XYacOVjs0SOQhKgoCAa7xATXGEorNsoyNmbxIv X-Received: by 10.58.155.6 with SMTP id vs6mr356494veb.32.1376487400253; Wed, 14 Aug 2013 06:36:40 -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 u4csp213258vcz; Wed, 14 Aug 2013 06:36:39 -0700 (PDT) X-Received: by 10.68.137.1 with SMTP id qe1mr10112949pbb.25.1376487399214; Wed, 14 Aug 2013 06:36:39 -0700 (PDT) Received: from mail-pd0-f173.google.com (mail-pd0-f173.google.com [209.85.192.173]) by mx.google.com with ESMTPS id bv1si28301017pbb.24.2013.08.14.06.36.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:39 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.173 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.173; Received: by mail-pd0-f173.google.com with SMTP id p10so6340576pdj.18 for ; Wed, 14 Aug 2013 06:36:38 -0700 (PDT) X-Received: by 10.66.154.1 with SMTP id vk1mr10006163pab.85.1376487398823; Wed, 14 Aug 2013 06:36:38 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id sx7sm50343938pbc.41.2013.08.14.06.36.35 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:38 -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 , Russell King Subject: [PATCH 31/37] cpufreq: sa11x0: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:02:20 +0530 Message-Id: <9f8639e3a5b27389c2c6e6e18a445c22f7a632ab.1376486714.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: , 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: Russell King Signed-off-by: Viresh Kumar --- drivers/cpufreq/sa1100-cpufreq.c | 1 - drivers/cpufreq/sa1110-cpufreq.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/cpufreq/sa1100-cpufreq.c b/drivers/cpufreq/sa1100-cpufreq.c index b9e131e..aa49a08 100644 --- a/drivers/cpufreq/sa1100-cpufreq.c +++ b/drivers/cpufreq/sa1100-cpufreq.c @@ -204,7 +204,6 @@ static int __init sa1100_cpu_init(struct cpufreq_policy *policy) { if (policy->cpu != 0) return -EINVAL; - policy->cur = sa11x0_getspeed(0); policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; return cpufreq_table_validate_and_show(policy, sa11x0_freq_table); diff --git a/drivers/cpufreq/sa1110-cpufreq.c b/drivers/cpufreq/sa1110-cpufreq.c index fb69553..c00cf2b 100644 --- a/drivers/cpufreq/sa1110-cpufreq.c +++ b/drivers/cpufreq/sa1110-cpufreq.c @@ -316,7 +316,6 @@ static int __init sa1110_cpu_init(struct cpufreq_policy *policy) { if (policy->cpu != 0) return -EINVAL; - policy->cur = sa11x0_getspeed(0); policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; return cpufreq_table_validate_and_show(policy, sa11x0_freq_table);