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

cpufreq: remove tango driver

The tango platform is getting removed, so the driver is no
longer needed.

Cc: Marc Gonzalez <marc.w.gonzalez@free.fr>
Cc: Mans Rullgard <mans@mansr.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[ Viresh: Update cpufreq-dt-platdev.c as well ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>

authored by

Arnd Bergmann and committed by
Viresh Kumar
7114ebff 3657f729

-46
-5
drivers/cpufreq/Kconfig.arm
··· 289 289 this config option if you wish to add CPUFreq support for STi based 290 290 SoCs. 291 291 292 - config ARM_TANGO_CPUFREQ 293 - bool 294 - depends on CPUFREQ_DT && ARCH_TANGO 295 - default y 296 - 297 292 config ARM_TEGRA20_CPUFREQ 298 293 tristate "Tegra20/30 CPUFreq support" 299 294 depends on ARCH_TEGRA && CPUFREQ_DT
-1
drivers/cpufreq/Makefile
··· 79 79 obj-$(CONFIG_ARM_SPEAR_CPUFREQ) += spear-cpufreq.o 80 80 obj-$(CONFIG_ARM_STI_CPUFREQ) += sti-cpufreq.o 81 81 obj-$(CONFIG_ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM) += sun50i-cpufreq-nvmem.o 82 - obj-$(CONFIG_ARM_TANGO_CPUFREQ) += tango-cpufreq.o 83 82 obj-$(CONFIG_ARM_TEGRA20_CPUFREQ) += tegra20-cpufreq.o 84 83 obj-$(CONFIG_ARM_TEGRA124_CPUFREQ) += tegra124-cpufreq.o 85 84 obj-$(CONFIG_ARM_TEGRA186_CPUFREQ) += tegra186-cpufreq.o
-2
drivers/cpufreq/cpufreq-dt-platdev.c
··· 141 141 { .compatible = "st,stih410", }, 142 142 { .compatible = "st,stih418", }, 143 143 144 - { .compatible = "sigma,tango4", }, 145 - 146 144 { .compatible = "ti,am33xx", }, 147 145 { .compatible = "ti,am43", }, 148 146 { .compatible = "ti,dra7", },
-38
drivers/cpufreq/tango-cpufreq.c
··· 1 - #include <linux/of.h> 2 - #include <linux/cpu.h> 3 - #include <linux/clk.h> 4 - #include <linux/pm_opp.h> 5 - #include <linux/platform_device.h> 6 - 7 - static const struct of_device_id machines[] __initconst = { 8 - { .compatible = "sigma,tango4" }, 9 - { /* sentinel */ } 10 - }; 11 - 12 - static int __init tango_cpufreq_init(void) 13 - { 14 - struct device *cpu_dev = get_cpu_device(0); 15 - unsigned long max_freq; 16 - struct clk *cpu_clk; 17 - void *res; 18 - 19 - if (!of_match_node(machines, of_root)) 20 - return -ENODEV; 21 - 22 - cpu_clk = clk_get(cpu_dev, NULL); 23 - if (IS_ERR(cpu_clk)) 24 - return -ENODEV; 25 - 26 - max_freq = clk_get_rate(cpu_clk); 27 - 28 - dev_pm_opp_add(cpu_dev, max_freq / 1, 0); 29 - dev_pm_opp_add(cpu_dev, max_freq / 2, 0); 30 - dev_pm_opp_add(cpu_dev, max_freq / 3, 0); 31 - dev_pm_opp_add(cpu_dev, max_freq / 5, 0); 32 - dev_pm_opp_add(cpu_dev, max_freq / 9, 0); 33 - 34 - res = platform_device_register_data(NULL, "cpufreq-dt", -1, NULL, 0); 35 - 36 - return PTR_ERR_OR_ZERO(res); 37 - } 38 - device_initcall(tango_cpufreq_init);