From patchwork Wed Aug 14 13:32:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 2844545 X-Patchwork-Delegate: lethal@linux-sh.org Return-Path: X-Original-To: patchwork-linux-sh@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 CA474BF547 for ; Wed, 14 Aug 2013 13:37:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 26E1D20607 for ; Wed, 14 Aug 2013 13:37:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D54DE20609 for ; Wed, 14 Aug 2013 13:37:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933093Ab3HNNg5 (ORCPT ); Wed, 14 Aug 2013 09:36:57 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:64848 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932998Ab3HNNgx (ORCPT ); Wed, 14 Aug 2013 09:36:53 -0400 Received: by mail-pa0-f47.google.com with SMTP id kl13so10068929pab.6 for ; Wed, 14 Aug 2013 06:36:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=g5Dfn6vZEZApeWIdxE/dnb4iHJ02f2v5BHx38oO6Yjc=; b=keeXNPuUbLjJFS3pnp3dI8ZF6em3RIFJRL1QIZzeHuOKE8cMsoNJFQZ6iaoKM7INCb lnWnulmhElr2BUSKAV8NbBqaMtfZixdIKDkyFda1RNDeLyHos4e7eW2hqJF3Ioidbd0T ymMuIX4FJEmR1uqM18zFlmf0tnh5u2C9eVWqoCAnVy/2vznz/11PCHQoBo9FKe7rTqYN kEQzg0eLCrPWu68unUDURED5VYlVtLQWLcW5aeHJUq3s5YBm3SLjMEJ6qDnSFo7HqbuP XXPoYo7/QhTVyTpqFCZxTK0SwrK1ocVTxd5YBNYzKGLxP9tb+6qvW9DYtqZ+vIR3NwfM wczw== X-Gm-Message-State: ALoCoQlEQz220b3qQ7imIH4eI3/+eQMtNbvh5ef5w1LuG6evP81XgGoSFzDCHpqkdDwcBCsl128N X-Received: by 10.66.218.74 with SMTP id pe10mr1144202pac.177.1376487413195; Wed, 14 Aug 2013 06:36:53 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id in2sm47107563pbc.37.2013.08.14.06.36.49 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:52 -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, Viresh Kumar , Paul Mundt , linux-sh@vger.kernel.org Subject: [PATCH 33/37] cpufreq: sh: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:02:22 +0530 Message-Id: <3248b5fa8ff398349355def086e5998d18ad0e1b.1376486714.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-9.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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: Paul Mundt Cc: linux-sh@vger.kernel.org Signed-off-by: Viresh Kumar --- drivers/cpufreq/sh-cpufreq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/cpufreq/sh-cpufreq.c b/drivers/cpufreq/sh-cpufreq.c index 91c6446..018348b 100644 --- a/drivers/cpufreq/sh-cpufreq.c +++ b/drivers/cpufreq/sh-cpufreq.c @@ -114,8 +114,6 @@ static int sh_cpufreq_cpu_init(struct cpufreq_policy *policy) return PTR_ERR(cpuclk); } - policy->cur = sh_cpufreq_get(cpu); - freq_table = cpuclk->nr_freqs ? cpuclk->freq_table : NULL; if (freq_table) { int result;