瀏覽代碼

ARM: tegra: Constify list of CPU domains

There's no need to modify these at runtime, it is static data and never
needs to change.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Thierry Reding 11 年之前
父節點
當前提交
f0ea2e0bb8
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      arch/arm/mach-tegra/powergate.c

+ 3 - 2
arch/arm/mach-tegra/powergate.c

@@ -42,8 +42,9 @@
 
 static int tegra_num_powerdomains;
 static int tegra_num_cpu_domains;
-static u8 *tegra_cpu_domains;
-static u8 tegra30_cpu_domains[] = {
+static const u8 *tegra_cpu_domains;
+
+static const u8 tegra30_cpu_domains[] = {
 	TEGRA_POWERGATE_CPU0,
 	TEGRA_POWERGATE_CPU1,
 	TEGRA_POWERGATE_CPU2,