From patchwork Fri Sep 13 13:01:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20174 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 28F4120358 for ; Fri, 13 Sep 2013 13:17:16 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id x20sf1199730qcv.7 for ; Fri, 13 Sep 2013 06:17:16 -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=TZbdiRgKAayGyM02CvMxUDXofOwwZk6ZWStDIIxHlfc=; b=aB9v7TUjN3aduCZ2FlC5GZZ3FDysXnmXB7spxHiWptSfAmwisG626NgrW/Kct2up2T Nxs5q+y2ttloW+TQjeMapGI7CU8HjGc+W7S2dwalUUMFzu0sZ/SwoVC1/pmi4VCCd43W rRMsEFIY+ov5OoPiFys0KbhBlLz0z8cFnA7QeNd4IctMS/qB95BwjXQcc7J6DcxtP3I5 M0YEkj0Ri4yUJBX7pC/oleFXyBDZY+YEf3mSzgYu4YTfsNeHhzuuCEeTvo4F1TWIG3Zp ToETeuSWqmoVXGfcwX2LEpON0AgB7iUC7vvbPvtimMwG8w82V8NsUwhtMr/FjwK/N5hv iq2Q== X-Gm-Message-State: ALoCoQkriPi+3b7Beu4db5XIMgv2llfXzXLoHhDRbF+TAbqMcnS6wfBDPpdmEsUKEksEXIqYZ+u3 X-Received: by 10.236.53.70 with SMTP id f46mr5022834yhc.17.1379078235969; Fri, 13 Sep 2013 06:17:15 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.42.39 with SMTP id k7ls1119566qel.52.gmail; Fri, 13 Sep 2013 06:17:15 -0700 (PDT) X-Received: by 10.52.231.5 with SMTP id tc5mr278413vdc.36.1379078235751; Fri, 13 Sep 2013 06:17:15 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id c11si3107062vej.90.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:15 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.174 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.174; Received: by mail-vc0-f174.google.com with SMTP id gd11so904004vcb.5 for ; Fri, 13 Sep 2013 06:17:15 -0700 (PDT) X-Received: by 10.58.75.131 with SMTP id c3mr8524212vew.12.1379078235659; Fri, 13 Sep 2013 06:17:15 -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 u4csp80155vcz; Fri, 13 Sep 2013 06:17:14 -0700 (PDT) X-Received: by 10.68.98.101 with SMTP id eh5mr13376050pbb.65.1379078234379; Fri, 13 Sep 2013 06:17:14 -0700 (PDT) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by mx.google.com with ESMTPS id if6si7471670pbc.13.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:14 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.46 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.46; Received: by mail-pa0-f46.google.com with SMTP id fa1so2511850pad.5 for ; Fri, 13 Sep 2013 06:17:14 -0700 (PDT) X-Received: by 10.68.50.106 with SMTP id b10mr13543871pbo.152.1379078233951; Fri, 13 Sep 2013 06:17:13 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id xs1sm18066335pac.7.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:13 -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 , Russell King Subject: [PATCH 120/228] cpufreq: sa11x0: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:31:06 +0530 Message-Id: <8e8853f66fadd4816a5d0fc5284c0c1b6a7816ba.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.174 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 Acked-by: Russell King --- 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 80a4fde..a1d1bb7 100644 --- a/drivers/cpufreq/sa1100-cpufreq.c +++ b/drivers/cpufreq/sa1100-cpufreq.c @@ -220,7 +220,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 a38d904..9da940e 100644 --- a/drivers/cpufreq/sa1110-cpufreq.c +++ b/drivers/cpufreq/sa1110-cpufreq.c @@ -334,7 +334,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);