cpufreq: dt: Mark platdev machines array as __initconst
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 22 Apr 2016 11:28:39 +0000 (16:58 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 25 Apr 2016 14:18:22 +0000 (16:18 +0200)
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>
drivers/cpufreq/cpufreq-dt-platdev.c

index f2ae7ad99a3ce29e7c2edf1dd7784c96da7de1bf..00da8c8bee6c172baa141a856881002e38668bd5 100644 (file)
@@ -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", },