Skip to contentSkip to conversation

ARM: shmobile: lager-reference: Add cpufreq-cpu0 device for CPUFreq support

RFC In review Benoit Cousson 1 participant 1 message Feb 26, 2014

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

RFC 3/4 ARM: shmobile: lager-reference: Add cpufreq-cpu0 device for CPUFreq support

Statically create a cpufreq-cpu0 device during machine init to allow the cpufreq-cpu0 driver to be bound to this device.

Since this device is a fake one, it cannot be created by devicetree devices population.

---
 arch/arm/mach-shmobile/board-lager-reference.c | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/mach-shmobile/board-lager-reference.c +3 -0
index 440aac3..bedc5c3 100644
@@ -27,6 +27,7 @@
 #include <mach/common.h>
 #include <mach/irqs.h>
 #include <mach/rcar-gen2.h>
+#include <linux/platform_device.h>
 #include <mach/r8a7790.h>
 #include <asm/mach/arch.h>
 
@@ -130,6 +131,8 @@ static void __init lager_add_standard_devices(void)
 	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 
 	lager_add_du_device();
+
+	platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0);
 }
 
 static const char *lager_boards_compat_dt[] __initdata = {
Signature · 1 line
1.8.3.2