From patchwork Fri Sep 13 13:00:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 2891191 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 ECE5BBFF05 for ; Fri, 13 Sep 2013 16:57:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2315C202BE for ; Fri, 13 Sep 2013 16:57:32 +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 325EC202B9 for ; Fri, 13 Sep 2013 16:57:31 +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 1VKTN1-0001BQ-6f; Fri, 13 Sep 2013 13:25:11 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKTMY-0008MN-Lg; Fri, 13 Sep 2013 13:24:42 +0000 Received: from mail-pb0-f53.google.com ([209.85.160.53]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKTDx-00072f-5E for linux-arm-kernel@lists.infradead.org; Fri, 13 Sep 2013 13:15:50 +0000 Received: by mail-pb0-f53.google.com with SMTP id up15so1226589pbc.12 for ; Fri, 13 Sep 2013 06:15:27 -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=SOKaW41LTqPgDa4m1Cpa8ygE8v9ZNvZXD1GMj89mn/U=; b=GXk4ENd05E19VOuFUGuzn8tiG3l1WiUwsrwsntLVpIboQizCtAgDiaWw1hUko280Z7 ncKJPRTyV8nsGTPZJ4KxFKAaYu7oZzEcf+nhQM5j2HXA9FLoX/+d8EvX0eCGgmUTmOn+ 2AsJbATaejo/mEuc2rgTN3IOzMmqS2htrJiDkdgwjjawVtR97GMzpjKMHko/Nsayw5D/ F/0p6XhhLUXdH6TeECtwVkCfWeGMLegMnQ+wGM/c6pbLv5EEbfsPjyOZc0/rNJOUKtaC ZY7LwicEMAgkpIiy6hrWG5eZ1WHfED3vfA3Tw8H/zt7K4jjcQjMIVZbFDiOkUg/6KM9Q UgYw== X-Gm-Message-State: ALoCoQkjvrbJjL0ZHGoYVU1l+JVcJeXxEBqFAalqWROaLfIOekWzd+ujOQB0zoeF4EiyOJQvedNN X-Received: by 10.67.15.70 with SMTP id fm6mr15191980pad.109.1379078127776; Fri, 13 Sep 2013 06:15:27 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id ry4sm18065216pab.4.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:15:27 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Subject: [PATCH 105/228] cpufreq: imx6q: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:30:51 +0530 Message-Id: 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_091549_335522_37EAE97D X-CRM114-Status: GOOD ( 10.74 ) X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar , patches@linaro.org, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, Shawn Guo , 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: Shawn Guo Signed-off-by: Viresh Kumar --- drivers/cpufreq/imx6q-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index 29767bb..649547f 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c @@ -162,7 +162,6 @@ static int imx6q_cpufreq_init(struct cpufreq_policy *policy) } policy->cpuinfo.transition_latency = transition_latency; - policy->cur = clk_get_rate(arm_clk) / 1000; cpumask_setall(policy->cpus); return 0;