|
@@ -21,6 +21,7 @@
|
|
#include <linux/err.h>
|
|
#include <linux/err.h>
|
|
#include <linux/init.h>
|
|
#include <linux/init.h>
|
|
#include <linux/module.h>
|
|
#include <linux/module.h>
|
|
|
|
+#include <linux/of.h>
|
|
#include <linux/types.h>
|
|
#include <linux/types.h>
|
|
|
|
|
|
static struct cpufreq_frequency_table freq_table[] = {
|
|
static struct cpufreq_frequency_table freq_table[] = {
|
|
@@ -158,6 +159,9 @@ static int __init tegra_cpufreq_init(void)
|
|
{
|
|
{
|
|
int err;
|
|
int err;
|
|
|
|
|
|
|
|
+ if (!of_machine_is_compatible("nvidia,tegra20"))
|
|
|
|
+ return -ENODEV;
|
|
|
|
+
|
|
cpu_clk = clk_get_sys(NULL, "cclk");
|
|
cpu_clk = clk_get_sys(NULL, "cclk");
|
|
if (IS_ERR(cpu_clk))
|
|
if (IS_ERR(cpu_clk))
|
|
return PTR_ERR(cpu_clk);
|
|
return PTR_ERR(cpu_clk);
|