aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-shmobile/cpufreq.c
diff options
context:
space:
mode:
authorGaku Inami <gaku.inami.xw@bp.renesas.com>2014-06-25 16:58:40 +0900
committerSimon Horman <horms+renesas@verge.net.au>2014-07-09 10:48:58 +0200
commite423d12cbcb9576785e891617888f627f1f57bf4 (patch)
tree8f31dfe828dda0076001e5f6f4dbca79d3737ed7 /arch/arm/mach-shmobile/cpufreq.c
parent06e32c91dbce3c24ccbe84e3af2a35199662bca0 (diff)
ARM: shmobile: Remove opps table check for cpufreq
This patch is based on feedback from Viresh Kumar. Since cpufreq-cpu0 driver has already check opp table, there is no need to same check in mach-shmobile. Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/cpufreq.c')
-rw-r--r--arch/arm/mach-shmobile/cpufreq.c16
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 @@
* for more details.
*/
-#include <linux/of.h>
-#include <linux/of_device.h>
#include <linux/platform_device.h>
int __init shmobile_cpufreq_init(void)
{
- struct device_node *np;
-
- np = of_cpu_device_node_get(0);
- if (np == NULL) {
- pr_err("failed to find cpu0 node\n");
- return 0;
- }
-
- if (of_get_property(np, "operating-points", NULL))
- platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0);
-
- of_node_put(np);
-
+ platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0);
return 0;
}