From patchwork Fri Sep 13 13:00:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20148 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f71.google.com (mail-vb0-f71.google.com [209.85.212.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7CAE020358 for ; Fri, 13 Sep 2013 13:14:09 +0000 (UTC) Received: by mail-vb0-f71.google.com with SMTP id g17sf1194862vbg.10 for ; Fri, 13 Sep 2013 06:14:09 -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=iUIpT36ei8IWKI1s9sNPpyVtbPfqSfInqiSCBMnffEc=; b=j70NCLoI1pgTuvPPhGaJyCqYlrOyygHlcK15tg6T8B3zpwkk2JEiw8Ym7FLxd533zz tBOha5DuXZtz5mfilJF7QFeSaXxaT/zkjESO+nmBr52ChPNiEZHS7MMHe6stmkgbamjJ Rp/objMtQPr0ZyTKeUeU7KSp96uBxos3/NyJnWasB/WKtg9PkYgCAelzT6gTy7KM5M0O NJwahs4fLVr8aa76L+XISnj7wiHEZLO3oeoGyKQMOszRXa/abJtkwSqBbf7egIKYRrQX jIDT5ohYF2PF1dgSf1I9SiLixx5UPpFGt4PzNOPktSiXs2h2QdnpCDn26FObosRd9VUG 4ZuQ== X-Gm-Message-State: ALoCoQn/T5BNLvpTCCxPu70sQmWIvfcVx6SblcbvHxshilkGvpLmtXdu38GiAMwIC0Lk0LtvD8Pu X-Received: by 10.236.45.102 with SMTP id o66mr5088775yhb.47.1379078049248; Fri, 13 Sep 2013 06:14:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.29.129 with SMTP id k1ls1137627qeh.75.gmail; Fri, 13 Sep 2013 06:14:09 -0700 (PDT) X-Received: by 10.220.88.13 with SMTP id y13mr12192504vcl.20.1379078048989; Fri, 13 Sep 2013 06:14:08 -0700 (PDT) Received: from mail-vb0-f49.google.com (mail-vb0-f49.google.com [209.85.212.49]) by mx.google.com with ESMTPS id dt10si3100273vdb.73.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:14:08 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.49 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.49; Received: by mail-vb0-f49.google.com with SMTP id w16so879294vbb.22 for ; Fri, 13 Sep 2013 06:14:08 -0700 (PDT) X-Received: by 10.52.165.131 with SMTP id yy3mr5969577vdb.25.1379078048846; Fri, 13 Sep 2013 06:14:08 -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 u4csp79986vcz; Fri, 13 Sep 2013 06:14:08 -0700 (PDT) X-Received: by 10.68.168.99 with SMTP id zv3mr13620514pbb.144.1379078047920; Fri, 13 Sep 2013 06:14:07 -0700 (PDT) Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by mx.google.com with ESMTPS id qc9si11205203pac.124.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:14:07 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.178 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.178; Received: by mail-pd0-f178.google.com with SMTP id w10so1236319pde.37 for ; Fri, 13 Sep 2013 06:14:07 -0700 (PDT) X-Received: by 10.66.161.229 with SMTP id xv5mr15438933pab.87.1379078047508; Fri, 13 Sep 2013 06:14:07 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id ia5sm11677045pbc.42.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:14:07 -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 , Steven Miao Subject: [PATCH 094/228] cpufreq: blackfin: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:30:40 +0530 Message-Id: <26f6beb862d15b9c763f0a71737a8d3bb255ffab.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.212.49 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: Steven Miao Signed-off-by: Viresh Kumar --- drivers/cpufreq/blackfin-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/blackfin-cpufreq.c b/drivers/cpufreq/blackfin-cpufreq.c index 48888cf..0bc9e8c 100644 --- a/drivers/cpufreq/blackfin-cpufreq.c +++ b/drivers/cpufreq/blackfin-cpufreq.c @@ -204,7 +204,6 @@ static int __bfin_cpu_init(struct cpufreq_policy *policy) policy->cpuinfo.transition_latency = 50000; /* 50us assumed */ - policy->cur = cclk; return cpufreq_table_validate_and_show(policy, bfin_freq_table); }