From patchwork Fri Sep 13 13:00: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: 20153 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f69.google.com (mail-qe0-f69.google.com [209.85.128.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 879BD20358 for ; Fri, 13 Sep 2013 13:14:45 +0000 (UTC) Received: by mail-qe0-f69.google.com with SMTP id 1sf1226421qec.0 for ; Fri, 13 Sep 2013 06:14:45 -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=pgKv5y8vTSW2jn51IcNnnITzDwACrLIcK5mJmhpkt7E=; b=PwEk1Vz1qI3tG7kNaSnNvysPEWu3ltFiwtE6yPM0Qkt3tVk4iLuRN5us6l97q29+je Ahi0WJeP7nlJQ3868HCnHnBcPN4ZhhfUJ6dc5iFDIt912m8o0mtheJC0YHz60Kua7trC joPlpQ8vHeebJ4h8CPUaptiSuGxiCN9UIT0i7PRiCJip+l7NbgN2nArjsYeR7e7lrxdD jko2MSJCuYC66rTJcP8o7V1ZlM/rNqPLzqG6X0O7tNqCLBqj8it/C39VQaDGCGaxAPfp HQe6ZddDmvT5DMMrw1f79lL2cJCP3OlIjBlU/tJzGdMBpNakClAz1uC3M3Iej/MiaKZd C3jw== X-Gm-Message-State: ALoCoQkiTJmUpksZezbJBKJn3r/nP3jf3fT/N/O8TJ41obzCKXSKDV7UDJlhqImNJEB1vyq8BmD4 X-Received: by 10.236.34.134 with SMTP id s6mr657704yha.49.1379078085176; Fri, 13 Sep 2013 06:14:45 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.1.65 with SMTP id 1ls1057344qek.72.gmail; Fri, 13 Sep 2013 06:14:45 -0700 (PDT) X-Received: by 10.221.55.4 with SMTP id vw4mr25501vcb.37.1379078084968; Fri, 13 Sep 2013 06:14:44 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id dj3si3097826vcb.119.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:14:44 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id oy12so921224veb.26 for ; Fri, 13 Sep 2013 06:14:44 -0700 (PDT) X-Received: by 10.221.44.136 with SMTP id ug8mr11947640vcb.13.1379078084841; Fri, 13 Sep 2013 06:14:44 -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 u4csp80023vcz; Fri, 13 Sep 2013 06:14:44 -0700 (PDT) X-Received: by 10.66.230.233 with SMTP id tb9mr15535600pac.38.1379078083868; Fri, 13 Sep 2013 06:14:43 -0700 (PDT) Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by mx.google.com with ESMTPS id zp6si7403825pbc.307.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:14:43 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.45 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.45; Received: by mail-pa0-f45.google.com with SMTP id bg4so2517532pad.4 for ; Fri, 13 Sep 2013 06:14:43 -0700 (PDT) X-Received: by 10.66.156.229 with SMTP id wh5mr15213451pab.156.1379078083477; Fri, 13 Sep 2013 06:14:43 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id cx4sm11699131pbc.24.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:14:43 -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 , Linus Walleij Subject: [PATCH 099/228] cpufreq: dbx500: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:30:45 +0530 Message-Id: <43f3fedcc13b4cd8a016f2dbbc91936423420cb8.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.128.181 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: Linus Walleij Signed-off-by: Viresh Kumar Acked-by: Linus Walleij --- drivers/cpufreq/dbx500-cpufreq.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/cpufreq/dbx500-cpufreq.c b/drivers/cpufreq/dbx500-cpufreq.c index 2d70637..ae1aa60 100644 --- a/drivers/cpufreq/dbx500-cpufreq.c +++ b/drivers/cpufreq/dbx500-cpufreq.c @@ -83,11 +83,6 @@ static int dbx500_cpufreq_init(struct cpufreq_policy *policy) return res; } - policy->min = policy->cpuinfo.min_freq; - policy->max = policy->cpuinfo.max_freq; - policy->cur = dbx500_cpufreq_getspeed(policy->cpu); - policy->governor = CPUFREQ_DEFAULT_GOVERNOR; - /* * FIXME : Need to take time measurement across the target() * function with no/some/all drivers in the notification