提交 15164e00 编写于 作者: D Dmitry Osipenko 提交者: Thierry Reding

ARM: tegra: Create platform device for tegra20-cpufreq driver

Tegra20-cpufreq driver require a platform device in order to be loaded,
instantiate a simple platform device for the driver during of the machines
late initialization.
Signed-off-by: NDmitry Osipenko <digetx@gmail.com>
Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: NThierry Reding <treding@nvidia.com>
上级 60cc43fc
...@@ -97,6 +97,10 @@ static void __init tegra_dt_init_late(void) ...@@ -97,6 +97,10 @@ static void __init tegra_dt_init_late(void)
if (IS_ENABLED(CONFIG_ARCH_TEGRA_2x_SOC) && if (IS_ENABLED(CONFIG_ARCH_TEGRA_2x_SOC) &&
of_machine_is_compatible("compal,paz00")) of_machine_is_compatible("compal,paz00"))
tegra_paz00_wifikill_init(); tegra_paz00_wifikill_init();
if (IS_ENABLED(CONFIG_ARCH_TEGRA_2x_SOC) &&
of_machine_is_compatible("nvidia,tegra20"))
platform_device_register_simple("tegra20-cpufreq", -1, NULL, 0);
} }
static const char * const tegra_dt_board_compat[] = { static const char * const tegra_dt_board_compat[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册