diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-04-22 13:28:39 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-04-25 16:18:22 +0200 |
commit | e92bb16674c5156ea9230ba7a3ab6d490750888f (patch) | |
tree | e4291ccdc1981244649ad66d7f9cf4f3abea669e /drivers/cpufreq | |
parent | cpufreq: qoriq: Fix cooling device registration issue during suspend (diff) | |
download | linux-e92bb16674c5156ea9230ba7a3ab6d490750888f.tar.xz linux-e92bb16674c5156ea9230ba7a3ab6d490750888f.zip |
cpufreq: dt: Mark platdev machines array as __initconst
The machines array in cpufreq-dt-platdev is used only once at boot time
and so should be marked with __initconst, so that kernel can free up
memory used for it, if required.
Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/cpufreq-dt-platdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index f2ae7ad99a3c..00da8c8bee6c 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -11,7 +11,7 @@ #include <linux/of.h> #include <linux/platform_device.h> -static const struct of_device_id machines[] = { +static const struct of_device_id machines[] __initconst = { { .compatible = "samsung,exynos3250", }, { .compatible = "samsung,exynos4210", }, { .compatible = "samsung,exynos4212", }, |