Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1383954

[PATCH 09/10] cpufreq: dt: Kill platform-data

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Viresh Kumar <viresh.kumar@linaro.org>
Newsgroups linux.kernel
Subject [PATCH 09/10] cpufreq: dt: Kill platform-data
Date Thu, 21 Apr 2016 11:00:02 +0200
Message-ID <rqiCS-6mQ-9@gated-at.bofh.it> (permalink)
References <rqiCR-6mQ-5@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=zmAAcCr/jphn+JoWRsqCxcCK9FLb4vjzi9N+gOQ9Dfk=; b=K85j8tSB/tp2w3UrmplfWv4djld/HpTjf87wPVvy0D2Wywtlv5o1lcbTTbZEF9ONEy DnaMwQu4mfNrhS5jnhPVy2bjzCfTofcOfpZbDxVEg7D+rsQdS0bMr2MVISgbzFqPUC5G aslOcHxT9gndG2D71eSuHHEnD4mgUbH+DXkeg=
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=zmAAcCr/jphn+JoWRsqCxcCK9FLb4vjzi9N+gOQ9Dfk=; b=A2ZXvQ3hYOH8+q2mnXUfzT5Mb/6JPp3WkPgs+0chDu3/wkHR3i9kVJYImD6FplfRid qXsv7BU8iuM66wsy6KNTGc1X8sVD8vxcPSMyEqfDcj8Ic1bR0T91AJbPSs3V3ZGHT7qq NR2FlAy/XY/ozm1SQtra6hkm38+FwSl1dFkAFYRdHKqqpZGThgFOk+W/lB8vBBxaiDVL f0ECSKlI1g6X/8FJx+AWO4M9bbBwhLrmMQOzzU/rZwfgkMCFTngPAkJGNULpJIjL4mUr ZR+uJ8HNf1jFLW4gz396Q2zuUz2F2TfnT3n13g3TYkiqjCIZ7yMvFWGHabxn2KEUrn9R csaQ==
X-Gm-Message-State AOPr4FWxLc8kLZ3u+r9hHzGH5jt0vacUteknYOj65BisAGtpaziUV+ozATtaHpG4QLBMvfZb
X-Received by 10.98.1.69 with SMTP id 66mr19358840pfb.10.1461229187211; Thu, 21 Apr 2016 01:59:47 -0700 (PDT)
X-Mailer git-send-email 2.7.1.410.g6faf27b
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 66
Organization linux.* mail to news gateway
X-Original-Cc linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, nm@ti.com, sboyd@codeaurora.org, arnd.bergmann@linaro.org, andrew@lunn.ch, gregory.clement@free-electrons.com, jason@lakedaemon.net, sebastian.hesselbarth@gmail.com, thomas.petazzoni@free-electrons.com, linux-kernel@vger.kernel.org
X-Original-Date Thu, 21 Apr 2016 14:29:01 +0530
X-Original-Message-ID <03e9d9e74651277bdfeac885fd86b0e482333b86.1461228504.git.viresh.kumar@linaro.org>
X-Original-References <cover.1461228504.git.viresh.kumar@linaro.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1383954

Show key headers only | View raw


There are no more users of platform-data for cpufreq-dt driver, get rid
of it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
 drivers/cpufreq/cpufreq-dt.c |  6 +-----
 include/linux/cpufreq-dt.h   | 24 ------------------------
 2 files changed, 1 insertion(+), 29 deletions(-)
 delete mode 100644 include/linux/cpufreq-dt.h

diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c
index aca9bec00f91..3957de801ae8 100644
--- a/drivers/cpufreq/cpufreq-dt.c
+++ b/drivers/cpufreq/cpufreq-dt.c
@@ -15,7 +15,6 @@
 #include <linux/cpu.h>
 #include <linux/cpu_cooling.h>
 #include <linux/cpufreq.h>
-#include <linux/cpufreq-dt.h>
 #include <linux/cpumask.h>
 #include <linux/err.h>
 #include <linux/module.h>
@@ -217,10 +216,7 @@ static int cpufreq_init(struct cpufreq_policy *policy)
 	}
 
 	if (fallback) {
-		struct cpufreq_dt_platform_data *pd = cpufreq_get_driver_data();
-
-		if (!pd || !pd->independent_clocks)
-			cpumask_setall(policy->cpus);
+		cpumask_setall(policy->cpus);
 
 		/*
 		 * OPP tables are initialized only for policy->cpu, do it for
diff --git a/include/linux/cpufreq-dt.h b/include/linux/cpufreq-dt.h
deleted file mode 100644
index a87335a1660c..000000000000
--- a/include/linux/cpufreq-dt.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (C) 2014 Marvell
- * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
-
-#ifndef __CPUFREQ_DT_H__
-#define __CPUFREQ_DT_H__
-
-#include <linux/types.h>
-
-struct cpufreq_dt_platform_data {
-	/*
-	 * True when each CPU has its own clock to control its
-	 * frequency, false when all CPUs are controlled by a single
-	 * clock.
-	 */
-	bool independent_clocks;
-};
-
-#endif /* __CPUFREQ_DT_H__ */
-- 
2.7.1.410.g6faf27b

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH 09/10] cpufreq: dt: Kill platform-data Viresh Kumar <viresh.kumar@linaro.org> - 2016-04-21 11:00 +0200
  Re: [PATCH 09/10] cpufreq: dt: Kill platform-data Stephen Boyd <sboyd@codeaurora.org> - 2016-04-23 00:30 +0200

csiph-web