Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Viresh Kumar and committed by
Rafael J. Wysocki
eb96924a 947bd567

+1 -29
+1 -5
drivers/cpufreq/cpufreq-dt.c
··· 15 15 #include <linux/cpu.h> 16 16 #include <linux/cpu_cooling.h> 17 17 #include <linux/cpufreq.h> 18 - #include <linux/cpufreq-dt.h> 19 18 #include <linux/cpumask.h> 20 19 #include <linux/err.h> 21 20 #include <linux/module.h> ··· 216 217 } 217 218 218 219 if (fallback) { 219 - struct cpufreq_dt_platform_data *pd = cpufreq_get_driver_data(); 220 - 221 - if (!pd || !pd->independent_clocks) 222 - cpumask_setall(policy->cpus); 220 + cpumask_setall(policy->cpus); 223 221 224 222 /* 225 223 * OPP tables are initialized only for policy->cpu, do it for
-24
include/linux/cpufreq-dt.h
··· 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__ */