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: 19146 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f70.google.com (mail-vb0-f70.google.com [209.85.212.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 04A0C2390D for ; Wed, 14 Aug 2013 13:36:54 +0000 (UTC) Received: by mail-vb0-f70.google.com with SMTP id h10sf7870856vbh.5 for ; Wed, 14 Aug 2013 06:36:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=g5Dfn6vZEZApeWIdxE/dnb4iHJ02f2v5BHx38oO6Yjc=; b=kXkBzNOnkY9HXMfCN33IUh1pElfJElsh2509pnEIQKZBdcCw4b0fYHyC4bCQh2uYvq awXfOmjb6P0li96S9kyFXHuvL9hpHSjJ1FyyWTfRFcmpp+W0g01uzvhl6/2Xef7dNG/L qQ/bpZirTppHvflib03Fbo7j5L1lDCOmVNyDLZxlqt/fX8bZycY/ixyCNgPJxBQSTVWg XUaFfI5vc6ZgDNeu/uMmBm+Xdm3y7tdklvzLC+p/xCOAodpU0OOYsvzYveURSgIYXG7b LHZkyANVz2tb49nuPNF3t0EF/7Is6xcSMYAVCSOvu975N2l4ou9f9FyXSVwm+UEyorZ9 TLHw== X-Received: by 10.58.229.65 with SMTP id so1mr2408752vec.33.1376487414755; Wed, 14 Aug 2013 06:36:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.73.234 with SMTP id o10ls3134353qev.24.gmail; Wed, 14 Aug 2013 06:36:54 -0700 (PDT) X-Received: by 10.220.91.16 with SMTP id k16mr9803042vcm.21.1376487414657; Wed, 14 Aug 2013 06:36:54 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id xb6si11034016vdb.16.2013.08.14.06.36.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:54 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id ha12so5097099vcb.37 for ; Wed, 14 Aug 2013 06:36:54 -0700 (PDT) X-Gm-Message-State: ALoCoQm/c97Men5r/5lOIJ1HaENq8UF+ImkX3FPhgPWEzW/2WjChq+8opegDbhl8/mD6BIxMYKN6 X-Received: by 10.52.103.35 with SMTP id ft3mr8365743vdb.5.1376487414559; Wed, 14 Aug 2013 06:36:54 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp213268vcz; Wed, 14 Aug 2013 06:36:54 -0700 (PDT) X-Received: by 10.66.162.195 with SMTP id yc3mr9886057pab.64.1376487413598; Wed, 14 Aug 2013 06:36:53 -0700 (PDT) Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by mx.google.com with ESMTPS id xx2si20892420pac.256.2013.08.14.06.36.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:53 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.50 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.50; Received: by mail-pa0-f50.google.com with SMTP id fb10so10006584pad.23 for ; Wed, 14 Aug 2013 06:36:53 -0700 (PDT) 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: X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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;