diff options
Diffstat (limited to 'drivers/cpufreq/cpufreq-dt-platdev.c')
-rw-r--r-- | drivers/cpufreq/cpufreq-dt-platdev.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index 2ee40fd360ca..71267626456b 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c | |||
@@ -11,6 +11,8 @@ | |||
11 | #include <linux/of.h> | 11 | #include <linux/of.h> |
12 | #include <linux/platform_device.h> | 12 | #include <linux/platform_device.h> |
13 | 13 | ||
14 | #include "cpufreq-dt.h" | ||
15 | |||
14 | static const struct of_device_id machines[] __initconst = { | 16 | static const struct of_device_id machines[] __initconst = { |
15 | { .compatible = "allwinner,sun4i-a10", }, | 17 | { .compatible = "allwinner,sun4i-a10", }, |
16 | { .compatible = "allwinner,sun5i-a10s", }, | 18 | { .compatible = "allwinner,sun5i-a10s", }, |
@@ -40,6 +42,7 @@ static const struct of_device_id machines[] __initconst = { | |||
40 | { .compatible = "samsung,exynos5250", }, | 42 | { .compatible = "samsung,exynos5250", }, |
41 | #ifndef CONFIG_BL_SWITCHER | 43 | #ifndef CONFIG_BL_SWITCHER |
42 | { .compatible = "samsung,exynos5420", }, | 44 | { .compatible = "samsung,exynos5420", }, |
45 | { .compatible = "samsung,exynos5433", }, | ||
43 | { .compatible = "samsung,exynos5800", }, | 46 | { .compatible = "samsung,exynos5800", }, |
44 | #endif | 47 | #endif |
45 | 48 | ||
@@ -51,6 +54,7 @@ static const struct of_device_id machines[] __initconst = { | |||
51 | { .compatible = "renesas,r8a7779", }, | 54 | { .compatible = "renesas,r8a7779", }, |
52 | { .compatible = "renesas,r8a7790", }, | 55 | { .compatible = "renesas,r8a7790", }, |
53 | { .compatible = "renesas,r8a7791", }, | 56 | { .compatible = "renesas,r8a7791", }, |
57 | { .compatible = "renesas,r8a7792", }, | ||
54 | { .compatible = "renesas,r8a7793", }, | 58 | { .compatible = "renesas,r8a7793", }, |
55 | { .compatible = "renesas,r8a7794", }, | 59 | { .compatible = "renesas,r8a7794", }, |
56 | { .compatible = "renesas,sh73a0", }, | 60 | { .compatible = "renesas,sh73a0", }, |
@@ -68,6 +72,8 @@ static const struct of_device_id machines[] __initconst = { | |||
68 | 72 | ||
69 | { .compatible = "sigma,tango4" }, | 73 | { .compatible = "sigma,tango4" }, |
70 | 74 | ||
75 | { .compatible = "ti,am33xx", }, | ||
76 | { .compatible = "ti,dra7", }, | ||
71 | { .compatible = "ti,omap2", }, | 77 | { .compatible = "ti,omap2", }, |
72 | { .compatible = "ti,omap3", }, | 78 | { .compatible = "ti,omap3", }, |
73 | { .compatible = "ti,omap4", }, | 79 | { .compatible = "ti,omap4", }, |
@@ -91,7 +97,8 @@ static int __init cpufreq_dt_platdev_init(void) | |||
91 | if (!match) | 97 | if (!match) |
92 | return -ENODEV; | 98 | return -ENODEV; |
93 | 99 | ||
94 | return PTR_ERR_OR_ZERO(platform_device_register_simple("cpufreq-dt", -1, | 100 | return PTR_ERR_OR_ZERO(platform_device_register_data(NULL, "cpufreq-dt", |
95 | NULL, 0)); | 101 | -1, match->data, |
102 | sizeof(struct cpufreq_dt_platform_data))); | ||
96 | } | 103 | } |
97 | device_initcall(cpufreq_dt_platdev_init); | 104 | device_initcall(cpufreq_dt_platdev_init); |