aba2d190a340da78a42eff59e1e37f44ff991f3f
[openwrt/openwrt.git] / target / linux / ipq806x / patches-4.9 / 0046-cpufreq-qcom-Remove-platform-data.patch
1 From f3a327717565cadc8ce5c148860ce0baeb4fbe20 Mon Sep 17 00:00:00 2001
2 From: Georgi Djakov <georgi.djakov@linaro.org>
3 Date: Thu, 14 Jul 2016 14:48:21 +0300
4 Subject: [PATCH 46/69] cpufreq: qcom: Remove platform data
5
6 Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
7 ---
8 drivers/cpufreq/qcom-cpufreq.c | 12 +++---------
9 1 file changed, 3 insertions(+), 9 deletions(-)
10
11 --- a/drivers/cpufreq/qcom-cpufreq.c
12 +++ b/drivers/cpufreq/qcom-cpufreq.c
13 @@ -20,7 +20,6 @@
14 #include <linux/platform_device.h>
15 #include <linux/pm_opp.h>
16 #include <linux/slab.h>
17 -#include <linux/cpufreq-dt.h>
18
19 static void __init get_krait_bin_format_a(int *speed, int *pvs, int *pvs_ver)
20 {
21 @@ -168,12 +167,6 @@ static int __init qcom_cpufreq_populate_
22
23 static int __init qcom_cpufreq_driver_init(void)
24 {
25 - struct cpufreq_dt_platform_data pdata = { .independent_clocks = true };
26 - struct platform_device_info devinfo = {
27 - .name = "cpufreq-dt",
28 - .data = &pdata,
29 - .size_data = sizeof(pdata),
30 - };
31 struct device *cpu_dev;
32 struct device_node *np;
33 int ret;
34 @@ -196,9 +189,10 @@ static int __init qcom_cpufreq_driver_in
35 if (ret)
36 return ret;
37
38 - return PTR_ERR_OR_ZERO(platform_device_register_full(&devinfo));
39 + return PTR_ERR_OR_ZERO(platform_device_register_simple("cpufreq-dt", -1,
40 + NULL, 0));
41 }
42 -module_init(qcom_cpufreq_driver_init);
43 +late_initcall(qcom_cpufreq_driver_init);
44
45 MODULE_DESCRIPTION("Qualcomm CPUfreq driver");
46 MODULE_LICENSE("GPL v2");