Commit e423d12c authored by Gaku Inami's avatar Gaku Inami Committed by Simon Horman

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: default avatarGaku Inami <gaku.inami.xw@bp.renesas.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 06e32c91
......@@ -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;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment