diff options
-rw-r--r-- | arch/arm/mach-shmobile/cpufreq.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/arch/arm/mach-shmobile/cpufreq.c b/arch/arm/mach-shmobile/cpufreq.c index e2c868fc41cf..8a24b2be46ae 100644 --- a/arch/arm/mach-shmobile/cpufreq.c +++ b/arch/arm/mach-shmobile/cpufreq.c | |||
@@ -8,24 +8,10 @@ | |||
8 | * for more details. | 8 | * for more details. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/of.h> | ||
12 | #include <linux/of_device.h> | ||
13 | #include <linux/platform_device.h> | 11 | #include <linux/platform_device.h> |
14 | 12 | ||
15 | int __init shmobile_cpufreq_init(void) | 13 | int __init shmobile_cpufreq_init(void) |
16 | { | 14 | { |
17 | struct device_node *np; | 15 | platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0); |
18 | |||
19 | np = of_cpu_device_node_get(0); | ||
20 | if (np == NULL) { | ||
21 | pr_err("failed to find cpu0 node\n"); | ||
22 | return 0; | ||
23 | } | ||
24 | |||
25 | if (of_get_property(np, "operating-points", NULL)) | ||
26 | platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0); | ||
27 | |||
28 | of_node_put(np); | ||
29 | |||
30 | return 0; | 16 | return 0; |
31 | } | 17 | } |