Skip to content

Commit

Permalink
cpufreq: tegra124: No need of setting platform-data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Viresh Kumar authored and Rafael J. Wysocki committed Apr 8, 2016
1 parent dbbe972 commit f3f24de
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/cpufreq/tegra124-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/clk.h>
#include <linux/cpufreq-dt.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/kernel.h>
Expand Down Expand Up @@ -69,10 +68,6 @@ static void tegra124_cpu_switch_to_pllx(struct tegra124_cpufreq_priv *priv)
clk_set_parent(priv->cpu_clk, priv->pllx_clk);
}

static struct cpufreq_dt_platform_data cpufreq_dt_pd = {
.independent_clocks = false,
};

static int tegra124_cpufreq_probe(struct platform_device *pdev)
{
struct tegra124_cpufreq_priv *priv;
Expand Down Expand Up @@ -129,8 +124,6 @@ static int tegra124_cpufreq_probe(struct platform_device *pdev)

cpufreq_dt_devinfo.name = "cpufreq-dt";
cpufreq_dt_devinfo.parent = &pdev->dev;
cpufreq_dt_devinfo.data = &cpufreq_dt_pd;
cpufreq_dt_devinfo.size_data = sizeof(cpufreq_dt_pd);

priv->cpufreq_dt_pdev =
platform_device_register_full(&cpufreq_dt_devinfo);
Expand Down

0 comments on commit f3f24de

Please sign in to comment.