diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-03-29 10:05:12 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-04-08 19:12:09 -0400 |
commit | f3f24dea2c7fd949377dc512fe1bfd0b7419afa3 (patch) | |
tree | 2eef82e3d47f89f4a366f1be3a6866f226516d5c | |
parent | dbbe972c112838bede8772c2a427c816e9f22839 (diff) |
cpufreq: tegra124: No need of setting platform-data
All CPUs on Tegra platform share clock/voltage lines and there is
absolutely no need of setting platform data for 'cpufreq-dt' platform
device, as that's the default case.
Stop setting platform data for cpufreq-dt device.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Thierry Reding <treding@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/cpufreq/tegra124-cpufreq.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/cpufreq/tegra124-cpufreq.c b/drivers/cpufreq/tegra124-cpufreq.c index 20bcceb58ccc..43530254201a 100644 --- a/drivers/cpufreq/tegra124-cpufreq.c +++ b/drivers/cpufreq/tegra124-cpufreq.c | |||
@@ -14,7 +14,6 @@ | |||
14 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 14 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
15 | 15 | ||
16 | #include <linux/clk.h> | 16 | #include <linux/clk.h> |
17 | #include <linux/cpufreq-dt.h> | ||
18 | #include <linux/err.h> | 17 | #include <linux/err.h> |
19 | #include <linux/init.h> | 18 | #include <linux/init.h> |
20 | #include <linux/kernel.h> | 19 | #include <linux/kernel.h> |
@@ -69,10 +68,6 @@ static void tegra124_cpu_switch_to_pllx(struct tegra124_cpufreq_priv *priv) | |||
69 | clk_set_parent(priv->cpu_clk, priv->pllx_clk); | 68 | clk_set_parent(priv->cpu_clk, priv->pllx_clk); |
70 | } | 69 | } |
71 | 70 | ||
72 | static struct cpufreq_dt_platform_data cpufreq_dt_pd = { | ||
73 | .independent_clocks = false, | ||
74 | }; | ||
75 | |||
76 | static int tegra124_cpufreq_probe(struct platform_device *pdev) | 71 | static int tegra124_cpufreq_probe(struct platform_device *pdev) |
77 | { | 72 | { |
78 | struct tegra124_cpufreq_priv *priv; | 73 | struct tegra124_cpufreq_priv *priv; |
@@ -129,8 +124,6 @@ static int tegra124_cpufreq_probe(struct platform_device *pdev) | |||
129 | 124 | ||
130 | cpufreq_dt_devinfo.name = "cpufreq-dt"; | 125 | cpufreq_dt_devinfo.name = "cpufreq-dt"; |
131 | cpufreq_dt_devinfo.parent = &pdev->dev; | 126 | cpufreq_dt_devinfo.parent = &pdev->dev; |
132 | cpufreq_dt_devinfo.data = &cpufreq_dt_pd; | ||
133 | cpufreq_dt_devinfo.size_data = sizeof(cpufreq_dt_pd); | ||
134 | 127 | ||
135 | priv->cpufreq_dt_pdev = | 128 | priv->cpufreq_dt_pdev = |
136 | platform_device_register_full(&cpufreq_dt_devinfo); | 129 | platform_device_register_full(&cpufreq_dt_devinfo); |