arm: tegra: fix ventana build break
Jin Qian [Sat, 12 Mar 2011 04:37:35 +0000 (20:37 -0800)]
Fix build break on ventana due to improper use
of kernel config paramters.

Original-Change-Id: I7ec13091cf67fa5cb25b39c92eb33756263506c4
Reviewed-on: http://git-master/r/22705
Tested-by: Jin Qian <jqian@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: Id942dc5dc79e0edf5dc27d418083f340ae40edb8

Rebase-Id: R789dea06de4b014643eff9b43343907e9dadcdda

arch/arm/mach-tegra/fuse.c
arch/arm/mach-tegra/fuse.h

index 9e86030..6467e02 100644 (file)
 
 static const char *tegra_revision_name[TEGRA_REVISION_MAX] = {
        [TEGRA_REVISION_UNKNOWN] = "unknown",
-#ifdef CONFIG_ARCH_TEGRA_2x_SOC
+#if defined(CONFIG_ARCH_TEGRA_2x_SOC)
        [TEGRA_REVISION_A02] = "A02",
        [TEGRA_REVISION_A03] = "A03",
        [TEGRA_REVISION_A03p] = "A03 prime",
-#elif CONFIG_ARCH_TEGRA_3x_SOC
+#elif defined(CONFIG_ARCH_TEGRA_3x_SOC)
        [TEGRA_REVISION_A01] = "A01",
 #endif
 };
index 60de4f2..007600c 100644 (file)
 
 enum tegra_revision {
        TEGRA_REVISION_UNKNOWN = 0,
-#ifdef CONFIG_ARCH_TEGRA_2x_SOC
+#if defined(CONFIG_ARCH_TEGRA_2x_SOC)
        TEGRA_REVISION_A02,
        TEGRA_REVISION_A03,
        TEGRA_REVISION_A03p,
-#elif CONFIG_ARCH_TEGRA_3x_SOC
+#elif defined(CONFIG_ARCH_TEGRA_3x_SOC)
        TEGRA_REVISION_A01,
 #endif
        TEGRA_REVISION_MAX,