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: 2886631 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 97494BFF05 for ; Fri, 13 Sep 2013 13:24:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 09C1F202C3 for ; Fri, 13 Sep 2013 13:24:30 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BE79220113 for ; Fri, 13 Sep 2013 13:24:28 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKTL9-0007zd-3S; Fri, 13 Sep 2013 13:23:16 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKTKj-00085b-Aq; Fri, 13 Sep 2013 13:22:49 +0000 Received: from mail-pd0-f170.google.com ([209.85.192.170]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKTCe-0006qY-WD for linux-arm-kernel@lists.infradead.org; Fri, 13 Sep 2013 13:14:30 +0000 Received: by mail-pd0-f170.google.com with SMTP id x10so1237563pdj.15 for ; Fri, 13 Sep 2013 06:14:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=iUIpT36ei8IWKI1s9sNPpyVtbPfqSfInqiSCBMnffEc=; b=TMFXohTPdNnEJQ4EFdeyliuZtXHUFONKWhM4dR6dEpHDrvGQPeuRg2lyxI/TJGcXYm iPE/G0nhInP/VfhxI+hiN9PoruARMqKinNEIEzAlrzNgo3zLRVpKb5tv8swqi1XVb8mB NYiREM8qKVggSDdqDGOFuW92B6N5qv9GeJOu/3quXL0tGKdtrSwiqGaMe3N0g2CBsC/L PH4jS3h+51BEtqf4qUlf0wi1lSDsafgyUQS9EVyd1Kx/1+iB0U/Gl7rBWQvl/nqRbwFa n06H5G4xgfUUkLkyVPMmkVEY30hpJ3862IuZKiuWzhmcUc3d89MYYNR9eaKgsxK0jWfL SjJQ== X-Gm-Message-State: ALoCoQlM77Mc6cp93kggRb5+rIsnKYj+eiJ5Mo0xM2beXS2WV5Hd/5G0f402ZR0baq6HJoqMHvjw 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130913_091429_166671_F8FCC50F X-CRM114-Status: GOOD ( 11.21 ) X-Spam-Score: -1.9 (-) Cc: linaro-kernel@lists.linaro.org, Steven Miao , linux-pm@vger.kernel.org, Viresh Kumar , patches@linaro.org, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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); }