diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-04-26 23:22:26 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-04-28 09:22:43 -0400 |
commit | eb96924acddc709db58221c210ca05cd9effb1df (patch) | |
tree | b2103d16226767aba469906ea8fa2ae05080a18a | |
parent | 947bd567f7a5185325a8f85e5235cf1145bd4417 (diff) |
cpufreq: dt: Kill platform-data
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>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/cpufreq/cpufreq-dt.c | 6 | ||||
-rw-r--r-- | include/linux/cpufreq-dt.h | 24 |
2 files changed, 1 insertions, 29 deletions
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 @@ | |||
15 | #include <linux/cpu.h> | 15 | #include <linux/cpu.h> |
16 | #include <linux/cpu_cooling.h> | 16 | #include <linux/cpu_cooling.h> |
17 | #include <linux/cpufreq.h> | 17 | #include <linux/cpufreq.h> |
18 | #include <linux/cpufreq-dt.h> | ||
19 | #include <linux/cpumask.h> | 18 | #include <linux/cpumask.h> |
20 | #include <linux/err.h> | 19 | #include <linux/err.h> |
21 | #include <linux/module.h> | 20 | #include <linux/module.h> |
@@ -217,10 +216,7 @@ static int cpufreq_init(struct cpufreq_policy *policy) | |||
217 | } | 216 | } |
218 | 217 | ||
219 | if (fallback) { | 218 | if (fallback) { |
220 | struct cpufreq_dt_platform_data *pd = cpufreq_get_driver_data(); | 219 | cpumask_setall(policy->cpus); |
221 | |||
222 | if (!pd || !pd->independent_clocks) | ||
223 | cpumask_setall(policy->cpus); | ||
224 | 220 | ||
225 | /* | 221 | /* |
226 | * OPP tables are initialized only for policy->cpu, do it for | 222 | * 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 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2014 Marvell | ||
3 | * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | */ | ||
9 | |||
10 | #ifndef __CPUFREQ_DT_H__ | ||
11 | #define __CPUFREQ_DT_H__ | ||
12 | |||
13 | #include <linux/types.h> | ||
14 | |||
15 | struct cpufreq_dt_platform_data { | ||
16 | /* | ||
17 | * True when each CPU has its own clock to control its | ||
18 | * frequency, false when all CPUs are controlled by a single | ||
19 | * clock. | ||
20 | */ | ||
21 | bool independent_clocks; | ||
22 | }; | ||
23 | |||
24 | #endif /* __CPUFREQ_DT_H__ */ | ||