aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2014-11-10 08:47:50 +0000
committerAndrey Konovalov <andrey.konovalov@linaro.org>2015-01-13 17:56:48 +0300
commitdf91e1884a8998954001f58570dfdd056224a5e2 (patch)
treefcef4503623568f095e5deb88a20026c43f97284
parent7c9f9c7e36d60acfd34bac0e7e57a790277aea5b (diff)
downloadlinux-df91e1884a8998954001f58570dfdd056224a5e2.tar.gz
cpufreq:qcom: covert to use cpufreq-dt
Recent 3.18 changed cpufreq-generic to cpufreq-dt, so convert the driver to use the the latest cpufreq-dt naming. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
-rw-r--r--drivers/cpufreq/qcom-cpufreq.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/cpufreq/qcom-cpufreq.c b/drivers/cpufreq/qcom-cpufreq.c
index aa8eb97144b6..26bce596a146 100644
--- a/drivers/cpufreq/qcom-cpufreq.c
+++ b/drivers/cpufreq/qcom-cpufreq.c
@@ -18,9 +18,14 @@
#include <linux/err.h>
#include <linux/io.h>
#include <linux/slab.h>
+#include <linux/cpufreq-dt.h>
#include <linux/pm_opp.h>
#include <linux/init.h>
+static struct cpufreq_dt_platform_data cpufreq_data = {
+ .independent_clocks = true,
+};
+
static void __init get_krait_bin_format_a(int *speed, int *pvs, int *pvs_ver)
{
void __iomem *base;
@@ -169,7 +174,11 @@ again:
static int __init qcom_cpufreq_driver_init(void)
{
- struct platform_device_info devinfo = { .name = "cpufreq-generic", };
+ struct platform_device_info devinfo = {
+ .name = "cpufreq-dt",
+ .data = &cpufreq_data,
+ .size_data = sizeof(cpufreq_data)
+ };
struct device *cpu_dev;
struct device_node *np;
struct platform_device *pdev;