@@ -48,7 +48,6 @@ smp-$(CONFIG_ARCH_EMEV2) += smp-emev2.o headsmp-scu.o platsmp-scu.o
# PM objects
obj-$(CONFIG_SUSPEND) += suspend.o
obj-$(CONFIG_CPU_IDLE) += cpuidle.o
-obj-$(CONFIG_CPU_FREQ) += cpufreq.o
obj-$(CONFIG_PM_RCAR) += pm-rcar.o
obj-$(CONFIG_PM_RMOBILE) += pm-rmobile.o
@@ -45,19 +45,12 @@ int shmobile_cpuidle_init(void);
static inline int shmobile_cpuidle_init(void) { return 0; }
#endif
-#ifdef CONFIG_CPU_FREQ
-int shmobile_cpufreq_init(void);
-#else
-static inline int shmobile_cpufreq_init(void) { return 0; }
-#endif
-
extern void __iomem *shmobile_scu_base;
static inline void __init shmobile_init_late(void)
{
shmobile_suspend_init();
shmobile_cpuidle_init();
- shmobile_cpufreq_init();
}
#endif /* __ARCH_MACH_COMMON_H */
deleted file mode 100644
@@ -1,17 +0,0 @@
-/*
- * CPUFreq support code for SH-Mobile ARM
- *
- * Copyright (C) 2014 Gaku Inami
- *
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- */
-
-#include <linux/platform_device.h>
-
-int __init shmobile_cpufreq_init(void)
-{
- platform_device_register_simple("cpufreq-dt", -1, NULL, 0);
- return 0;
-}
@@ -29,6 +29,9 @@ static const struct of_device_id compatible_machine_match[] = {
{ .compatible = "marvell,armadaxp", .data = "cpufreq-dt" },
+ { .compatible = "renesas,sh7372", .data = "cpufreq-dt" },
+ { .compatible = "renesas,sh73a0", .data = "cpufreq-dt" },
+
/* BLACKLIST of existing users of arm-bL-cpufreq-dt below */
/* BLACKLIST of existing users of other drivers below */
We now have a common interface for create platform device required to probe cpufreq-dt driver (and others as well). Lets create devices from dt_device.c instead of platform specific code. For shmobile, we are updating the blacklist instead of DT because the newer kernel should be backwards compatible with older DT as well. We can update the "compatible" property in DT but it wouldn't make a difference as we already have imx in the blacklist. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- arch/arm/mach-shmobile/Makefile | 1 - arch/arm/mach-shmobile/common.h | 7 ------- arch/arm/mach-shmobile/cpufreq.c | 17 ----------------- drivers/cpufreq/dt_device.c | 3 +++ 4 files changed, 3 insertions(+), 25 deletions(-) delete mode 100644 arch/arm/mach-shmobile/cpufreq.c