From patchwork Wed Aug 14 13:31:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19122 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f198.google.com (mail-ye0-f198.google.com [209.85.213.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DC3A02390D for ; Wed, 14 Aug 2013 13:33:52 +0000 (UTC) Received: by mail-ye0-f198.google.com with SMTP id m12sf5383080yen.5 for ; Wed, 14 Aug 2013 06:33:52 -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=4dGCEnt6MWYjmh7oCrs7sfFpB/PZf6uK+5EiTOBF2+M=; b=iNNRqQidUp7YMMGVXNCCmYzYwPWeb+YjaVQhFuVvpPMyqgd6BPZTdhHb/OQL8kCpr6 lf6bxZHZ68PmflfMy+9cHgO3LaK5zJfZ8uueU9kOQ6q8QQG5/o4gqEI+xYj9GHJVx04M 94kXkZvbWrkSsy+QlYavbdvFilvn5OJ60GaRdf/45dvDizg+zAtYzSDYIdThDxoHBIek FVkGNI0gUtCpmOMmkRkmcYqnCcJXUt50WtC/wuGZxf+rkiBXQhX/Md0QjXy2sCV8xj7l PvQh7Hs9ejIoufX2wGvc3EPB95SGO4CN85KlXiReSo6+cLjlHCnBrPLzIRDC96QoTpIs +GWg== X-Received: by 10.58.188.15 with SMTP id fw15mr2544094vec.9.1376487232528; Wed, 14 Aug 2013 06:33:52 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.105.3 with SMTP id gi3ls2892281qeb.81.gmail; Wed, 14 Aug 2013 06:33:52 -0700 (PDT) X-Received: by 10.220.58.5 with SMTP id e5mr80708vch.52.1376487232446; Wed, 14 Aug 2013 06:33:52 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id mq14si11027233vcb.56.2013.08.14.06.33.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:52 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.174; Received: by mail-ve0-f174.google.com with SMTP id d10so7651249vea.19 for ; Wed, 14 Aug 2013 06:33:52 -0700 (PDT) X-Gm-Message-State: ALoCoQkZQ3eRnf9T8nR4a+1yp08LVYy2PB3x+avR/4734GmNys6mnJNuMyDm2LtLRcEZ0I20DMUK X-Received: by 10.220.76.201 with SMTP id d9mr89591vck.49.1376487232353; Wed, 14 Aug 2013 06:33:52 -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 u4csp213086vcz; Wed, 14 Aug 2013 06:33:51 -0700 (PDT) X-Received: by 10.66.25.102 with SMTP id b6mr9756401pag.129.1376487231508; Wed, 14 Aug 2013 06:33:51 -0700 (PDT) Received: from mail-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48]) by mx.google.com with ESMTPS id dz4si28292457pbc.29.2013.08.14.06.33.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:51 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.48 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.48; Received: by mail-pb0-f48.google.com with SMTP id ma3so9260127pbc.7 for ; Wed, 14 Aug 2013 06:33:51 -0700 (PDT) X-Received: by 10.68.233.134 with SMTP id tw6mr10052397pbc.9.1376487231026; Wed, 14 Aug 2013 06:33:51 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id xl3sm50364676pbb.17.2013.08.14.06.33.46 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:50 -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 , Sekhar Nori Subject: [PATCH 09/37] cpufreq: davinci: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:01:58 +0530 Message-Id: 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.128.174 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: Sekhar Nori Signed-off-by: Viresh Kumar --- drivers/cpufreq/davinci-cpufreq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/cpufreq/davinci-cpufreq.c b/drivers/cpufreq/davinci-cpufreq.c index 822100b..07ea6c0 100644 --- a/drivers/cpufreq/davinci-cpufreq.c +++ b/drivers/cpufreq/davinci-cpufreq.c @@ -128,8 +128,6 @@ static int davinci_cpu_init(struct cpufreq_policy *policy) return result; } - policy->cur = davinci_getspeed(0); - result = cpufreq_table_validate_and_show(policy, freq_table); if (result) { pr_err("%s: cpufreq_table_validate_and_show() failed",