From patchwork Wed Aug 14 13:31:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19123 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f197.google.com (mail-ve0-f197.google.com [209.85.128.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1014D2390D for ; Wed, 14 Aug 2013 13:34:00 +0000 (UTC) Received: by mail-ve0-f197.google.com with SMTP id ox1sf5624039veb.8 for ; Wed, 14 Aug 2013 06:33:59 -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=nKyEnvuTofCFUg1xYMoj8waugqMmz1H8WtECEBqWCeE=; b=kXjFF1yLKng5oc3PdR8QJ9EyrR1qrlJnh4EtjO49mVDx/iZC7F3zhYJsnMrb3d6PEG iecMMAD1vokHUG5tcEBUCUqCtOIh0ZDsTuohpq+CtAVBPEe13Rho6Kio3r2gMOwgsFKJ de3ghga22y1aCoHffwmpbdNT2EMqzTU/WtftCCVL/KpytvHM17cfAkImEQ9yTIsQSaSX sV/FE7dwJIzHdCHVaX897cZlOUFwwgLmk7GWNXiyUuixmFGfTTdg4vkhSdzAT4MWdLG0 wWXWe4vYzZf9IMV2XCABqZFMDJTEFhFouPTHpX0AFhfk1zIOujxQvuT5YlKO4uq/Nae9 IQPA== X-Received: by 10.58.207.75 with SMTP id lu11mr2409056vec.20.1376487239793; Wed, 14 Aug 2013 06:33:59 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.61.135 with SMTP id p7ls613307qer.54.gmail; Wed, 14 Aug 2013 06:33:59 -0700 (PDT) X-Received: by 10.58.197.5 with SMTP id iq5mr439968vec.30.1376487239696; Wed, 14 Aug 2013 06:33:59 -0700 (PDT) Received: from mail-vb0-f45.google.com (mail-vb0-f45.google.com [209.85.212.45]) by mx.google.com with ESMTPS id gq10si11030135vdc.17.2013.08.14.06.33.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:59 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.45 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.45; Received: by mail-vb0-f45.google.com with SMTP id e15so7639004vbg.32 for ; Wed, 14 Aug 2013 06:33:59 -0700 (PDT) X-Gm-Message-State: ALoCoQk+1N+xsbYfcCjSohl3vsPqXLLZyLKJYTAC0fOwMGDJlsiwZn4uYzxUQuF14VAeq19lMMIV X-Received: by 10.52.177.35 with SMTP id cn3mr89260vdc.46.1376487239599; Wed, 14 Aug 2013 06:33:59 -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 u4csp213093vcz; Wed, 14 Aug 2013 06:33:59 -0700 (PDT) X-Received: by 10.68.131.3 with SMTP id oi3mr9991494pbb.35.1376487238794; Wed, 14 Aug 2013 06:33:58 -0700 (PDT) Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by mx.google.com with ESMTPS id aq4si28265479pbd.146.2013.08.14.06.33.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:58 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.174 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.174; Received: by mail-pd0-f174.google.com with SMTP id y13so6353461pdi.19 for ; Wed, 14 Aug 2013 06:33:58 -0700 (PDT) X-Received: by 10.68.137.1 with SMTP id qe1mr10099887pbb.25.1376487238338; Wed, 14 Aug 2013 06:33:58 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id ys4sm50377419pbb.9.2013.08.14.06.33.54 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:57 -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 , Linus Walleij Subject: [PATCH 10/37] cpufreq: dbx500: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:01:59 +0530 Message-Id: <5532817a232d16558111f035874e9eb74e03e81e.1376486713.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.212.45 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: Linus Walleij Signed-off-by: Viresh Kumar --- drivers/cpufreq/dbx500-cpufreq.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/cpufreq/dbx500-cpufreq.c b/drivers/cpufreq/dbx500-cpufreq.c index 28deaf0..d6d6b8c 100644 --- a/drivers/cpufreq/dbx500-cpufreq.c +++ b/drivers/cpufreq/dbx500-cpufreq.c @@ -73,11 +73,6 @@ static int dbx500_cpufreq_init(struct cpufreq_policy *policy) return res; } - policy->min = policy->cpuinfo.min_freq; - policy->max = policy->cpuinfo.max_freq; - policy->cur = dbx500_cpufreq_getspeed(policy->cpu); - policy->governor = CPUFREQ_DEFAULT_GOVERNOR; - /* * FIXME : Need to take time measurement across the target() * function with no/some/all drivers in the notification