From patchwork Fri Sep 13 12:59:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20093 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f200.google.com (mail-ye0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BC27A202E6 for ; Fri, 13 Sep 2013 13:07:41 +0000 (UTC) Received: by mail-ye0-f200.google.com with SMTP id r3sf1151887yen.7 for ; Fri, 13 Sep 2013 06:07:41 -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=f38O5VMrJsBuhgSp8swCip8o8PRICb2uTSyw/1nMh+U=; b=kSn9WNaXHcRjTQbGuqutSQt2TOEgZkn1GujXq8CBkRBBmKdvJc0OvaLQJNspkSkUnj FY45wjiPe9HTETD22glffvxl2g8djPoM2qaHGBImatWbahkKVc2+atjYGt7DHxvTaOzO SIWOEAgT81X0e6nKa2r6WvyGIqHVUvCa6pj60FAVLTREBuEjXPs/ToJUC44Q0x8b0QPV aAizESvR/mOjpOEIbVP5lrO6yfYeSC87tps2zugxl+25XUISiOXNZiG7SN8ajzF/3tEg cSP5DEsJ/baMmxFUrNuuqPZf9u6YVHeWwbrFwoHqoRt1AVXIHuKJRz03MykJPOcUVdFc HEyA== X-Gm-Message-State: ALoCoQlN4/6Q4kDnd5Cx5/FzzLMfrft4iM2nk/BITa/DuJ26UNGQL0qS2KzDctDgvjbDfGGbZXlz X-Received: by 10.236.209.103 with SMTP id r67mr5414626yho.35.1379077661435; Fri, 13 Sep 2013 06:07:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.53.103 with SMTP id a7ls1024592qep.90.gmail; Fri, 13 Sep 2013 06:07:41 -0700 (PDT) X-Received: by 10.52.230.74 with SMTP id sw10mr9666446vdc.6.1379077661202; Fri, 13 Sep 2013 06:07:41 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id jc7si3080052vdb.130.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:07:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.176 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.176; Received: by mail-vc0-f176.google.com with SMTP id lf11so886469vcb.21 for ; Fri, 13 Sep 2013 06:07:41 -0700 (PDT) X-Received: by 10.221.64.17 with SMTP id xg17mr11906867vcb.5.1379077661122; Fri, 13 Sep 2013 06:07:41 -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 u4csp79673vcz; Fri, 13 Sep 2013 06:07:40 -0700 (PDT) X-Received: by 10.66.66.161 with SMTP id g1mr1981620pat.175.1379077660023; Fri, 13 Sep 2013 06:07:40 -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 pi7si7433351pbc.51.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:07:40 -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 lj1so2516007pab.15 for ; Fri, 13 Sep 2013 06:07:39 -0700 (PDT) X-Received: by 10.68.176.132 with SMTP id ci4mr13412853pbc.7.1379077659626; Fri, 13 Sep 2013 06:07:39 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id in2sm11646878pbc.37.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:07:39 -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 039/228] cpufreq: sa11x0: let cpufreq core initialize struct policy fields Date: Fri, 13 Sep 2013 18:29:45 +0530 Message-Id: <8a36f8e32d7a9e9f4aa74db0525dbdc74fc023dd.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.176 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 fields of struct policy are filled by cpufreq core when we call cpufreq_table_validate_and_show() and so cpufreq driver doesn't need to set them anymore. Signed-off-by: Viresh Kumar Acked-by: Russell King --- drivers/cpufreq/sa1100-cpufreq.c | 4 +--- drivers/cpufreq/sa1110-cpufreq.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/cpufreq/sa1100-cpufreq.c b/drivers/cpufreq/sa1100-cpufreq.c index 1323a69..37fce2f 100644 --- a/drivers/cpufreq/sa1100-cpufreq.c +++ b/drivers/cpufreq/sa1100-cpufreq.c @@ -220,9 +220,7 @@ static int __init sa1100_cpu_init(struct cpufreq_policy *policy) { if (policy->cpu != 0) return -EINVAL; - policy->cur = policy->min = policy->max = sa11x0_getspeed(0); - policy->cpuinfo.min_freq = 59000; - policy->cpuinfo.max_freq = 287000; + 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 adb0524..13760fc 100644 --- a/drivers/cpufreq/sa1110-cpufreq.c +++ b/drivers/cpufreq/sa1110-cpufreq.c @@ -334,9 +334,7 @@ static int __init sa1110_cpu_init(struct cpufreq_policy *policy) { if (policy->cpu != 0) return -EINVAL; - policy->cur = policy->min = policy->max = sa11x0_getspeed(0); - policy->cpuinfo.min_freq = 59000; - policy->cpuinfo.max_freq = 287000; + policy->cur = sa11x0_getspeed(0); policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; return cpufreq_table_validate_and_show(policy, sa11x0_freq_table);