From patchwork Thu Oct 3 14:59:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 2983801 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 73330BFF0B for ; Thu, 3 Oct 2013 15:06:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5CA2720272 for ; Thu, 3 Oct 2013 15:06:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3CE1C2018C for ; Thu, 3 Oct 2013 15:06:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754613Ab3JCPGm (ORCPT ); Thu, 3 Oct 2013 11:06:42 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:53044 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754274Ab3JCPGl (ORCPT ); Thu, 3 Oct 2013 11:06:41 -0400 Received: by mail-pd0-f177.google.com with SMTP id y10so2600771pdj.22 for ; Thu, 03 Oct 2013 08:06:41 -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=g5Dfn6vZEZApeWIdxE/dnb4iHJ02f2v5BHx38oO6Yjc=; b=cfxt7gHkOylwNmwT3Fg5AfBKMl2tQibE+Dn86cYBOu6JtYeI0xCAdoGUnDhqKH+R2p TmCpkhUSAGr06Q0i401P59V2tteWVuW5BRyDEutU52C/YLBJSpGimywK6wdu7hKRESwb xVKGMqgdeJVHHgBg4w10PI+2XMqMBimNRjR2H7vKEQ26WjGjrDO2v10oWs51+6aKnbok psAur+pxXoyRYagABsAqJeXBMtyJWA9nGyxFRZTpWRTZnZTS8LuCZeXa1YMvPEwGl5A1 QDNrQjG6xCHx8C+Pe7pivl5xaLb1L8I4UhZ+e1JnAzaDmU2+PzZj/Iw9IEG9AXW5jpxw UdSg== X-Gm-Message-State: ALoCoQmt/xtyTR1Gt4pkhErIPa9vPcZD+DQCdIvn+FsRR3KLIBERbHsC014nOLgd7yfUASgyjTGs X-Received: by 10.68.170.133 with SMTP id am5mr1025065pbc.104.1380812801127; Thu, 03 Oct 2013 08:06:41 -0700 (PDT) Received: from localhost ([122.167.152.64]) by mx.google.com with ESMTPSA id bp4sm6217317pbb.42.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Oct 2013 08:06:40 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Cc: cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, Viresh Kumar , Paul Mundt , linux-sh@vger.kernel.org Subject: [PATCH V2 Resend 68/92] cpufreq: sh: don't initialize part of policy that is set by core too Date: Thu, 3 Oct 2013 20:29:02 +0530 Message-Id: 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=-7.6 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;