From patchwork Fri Sep 13 13:01:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 2888471 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 1BB0FBFF05 for ; Fri, 13 Sep 2013 13:50:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F29882021E for ; Fri, 13 Sep 2013 13:50:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4EFDC20254 for ; Fri, 13 Sep 2013 13:50:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932475Ab3IMNRb (ORCPT ); Fri, 13 Sep 2013 09:17:31 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:65447 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933421Ab3IMNR2 (ORCPT ); Fri, 13 Sep 2013 09:17:28 -0400 Received: by mail-pa0-f50.google.com with SMTP id fb10so2538309pad.9 for ; Fri, 13 Sep 2013 06:17:28 -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=omj/O+9z82DCp1B3cnpn+housg/rdJ7GVF3YWntqG1I=; b=FfJBjuTtIJKonb+IgbQeYO4f8r8M6dzh1GdQMwohXElUla2C5XtwLCXQLLd+vPjfyn BvTasJOAOyf1zG5bsFIzW8ycQ2laW4pxbdYrBLc3z6eXA+2eoomHCE/bG/mXjwyDCWFc 9ZfK7bIf4bxoV9OCJu0aWludogpWIJqYHokvEr4yTohH+mO6QZDiLX8WTw5OxeUSmbFK +lGTvXW8at1c1dVt0xhODGcKQWTd9kkk3rtVxKuQYUhyy242wbMlokPKPXLsoXNfzSVY HFR8fqFK5bu/NM99f2+Q47ARfauqBehCScYmNMEfxJ9U9jWLlvsuiEQM8750ph9Cc5DX 3zUw== X-Gm-Message-State: ALoCoQmvVmuu3X2v51awLViV0d7g5QsbwPZPEPNeBLmQ+hfc9BR0IKQ2I7A5YMuyXR+yCgRuNh7I X-Received: by 10.66.156.199 with SMTP id wg7mr15120570pab.81.1379078248046; Fri, 13 Sep 2013 06:17:28 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id ia5sm11694655pbc.42.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:27 -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 , Paul Mundt , linux-sh@vger.kernel.org Subject: [PATCH 122/228] cpufreq: sh: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:31:08 +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.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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: 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 c681b86..387af12 100644 --- a/drivers/cpufreq/sh-cpufreq.c +++ b/drivers/cpufreq/sh-cpufreq.c @@ -111,8 +111,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;