From patchwork Wed Aug 14 13:32:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19150 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2D34C2390D for ; Wed, 14 Aug 2013 13:37:23 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id hf12sf2835877vcb.11 for ; Wed, 14 Aug 2013 06:37:22 -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=PkB96YjCtn+qrupw9KIw4ESwFnUT0JdzzVH0zxE2GZw=; b=VK9solefE31QDEx55CvGsCQUAGbrUCGacXsUn65dN52FxALGhUlNO/7wnEgukuLWrp CaKPHQuj5hgvR6BgWkpqFZxLGECvyzRw9PRg8j3byseuwKpWaAUjwYBk91N9HBYTTbnz 4eFoju6JMgZpzZ1xKTUwsZ63HmLp0solhP9QCH08qWMUNA9stZlGBh2b4AmTsEvB98RJ likElmnBrSSuioNANSwQsGkM6ZGFiEPtCUuVJWROQhb7XF/3cuqvvnYkTwTQvxuzXD6/ C0x2f9aWdjA9PEWVML7bXTUTyddJhJ5i0gDbmCFo1gdQWnlU1izw5KaAvKD/bkuFcdAy +msA== X-Received: by 10.58.19.74 with SMTP id c10mr2534610vee.29.1376487442922; Wed, 14 Aug 2013 06:37:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.0.212 with SMTP id 20ls2165285qeg.25.gmail; Wed, 14 Aug 2013 06:37:22 -0700 (PDT) X-Received: by 10.58.108.8 with SMTP id hg8mr9621868veb.6.1376487442838; Wed, 14 Aug 2013 06:37:22 -0700 (PDT) Received: from mail-vb0-f47.google.com (mail-vb0-f47.google.com [209.85.212.47]) by mx.google.com with ESMTPS id g7si11025773vcz.120.2013.08.14.06.37.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:37:22 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.47 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.47; Received: by mail-vb0-f47.google.com with SMTP id h10so7477311vbh.6 for ; Wed, 14 Aug 2013 06:37:22 -0700 (PDT) X-Gm-Message-State: ALoCoQlbBsABNltsvMAykCQKUniTV6nt0BRfmXC36zBBWL16I2uRSB3AYXl/8mGnDiWKwMWs4Ooi X-Received: by 10.52.117.79 with SMTP id kc15mr94855vdb.45.1376487442754; Wed, 14 Aug 2013 06:37:22 -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 u4csp213294vcz; Wed, 14 Aug 2013 06:37:22 -0700 (PDT) X-Received: by 10.66.139.166 with SMTP id qz6mr4266288pab.88.1376487441627; Wed, 14 Aug 2013 06:37:21 -0700 (PDT) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by mx.google.com with ESMTPS id dz4si28267655pbc.179.2013.08.14.06.37.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:37:21 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.53 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.53; Received: by mail-pa0-f53.google.com with SMTP id lb1so10090797pab.26 for ; Wed, 14 Aug 2013 06:37:21 -0700 (PDT) X-Received: by 10.66.122.194 with SMTP id lu2mr9789063pab.125.1376487441239; Wed, 14 Aug 2013 06:37:21 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id kd1sm53372149pab.20.2013.08.14.06.37.17 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:37:20 -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 Subject: [PATCH 37/37] cpufreq: unicore2: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:02:26 +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.47 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(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/unicore2-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/unicore2-cpufreq.c b/drivers/cpufreq/unicore2-cpufreq.c index b225f04..79ca32e 100644 --- a/drivers/cpufreq/unicore2-cpufreq.c +++ b/drivers/cpufreq/unicore2-cpufreq.c @@ -68,7 +68,6 @@ static int __init ucv2_cpu_init(struct cpufreq_policy *policy) { if (policy->cpu != 0) return -EINVAL; - policy->cur = ucv2_getspeed(0); policy->min = policy->cpuinfo.min_freq = 250000; policy->max = policy->cpuinfo.max_freq = 1000000; policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL;