diff options
author | Robert Morell <rmorell@nvidia.com> | 2011-02-01 14:46:53 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-04-26 15:50:54 -0700 |
commit | c7b588686d9c54a3a11cc0157eebff287b68ba41 (patch) | |
tree | 40a3db66b7d7a917feea3f87ee32cf6671f69f98 /drivers/video/tegra/host | |
parent | fe79cb1b6701a2d10647698dfb70eefbcd9a197e (diff) |
arm: tegra: nvhost: Fix TEGRA_2x_SOC build
Preprocessor config options are either defined or not defined, not
always defined to logical true or false. Use #ifdef instead of #if to
get the desired behavior and avoid the warning:
nvhost_3dctx.c:28:5: warning: "CONFIG_ARCH_TEGRA_3x_SOC" is not defined
Originally broken by commit 7959045ff7b177a09350df882c4bba78d93cac5f.
Original-Change-Id: I165aab164f4ed4d1c4a7e2b64357384c170aa009
Signed-off-by: Robert Morell <rmorell@nvidia.com>
Reviewed-on: http://git-master/r/17945
Reviewed-by: Andrew Howe <ahowe@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Change-Id: Iec522ad1cbc4dfddc17386a5125c31ad95a4b753
Diffstat (limited to 'drivers/video/tegra/host')
-rw-r--r-- | drivers/video/tegra/host/nvhost_3dctx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/host/nvhost_3dctx.c b/drivers/video/tegra/host/nvhost_3dctx.c index 0bc069981b1c..47299fc34457 100644 --- a/drivers/video/tegra/host/nvhost_3dctx.c +++ b/drivers/video/tegra/host/nvhost_3dctx.c @@ -25,7 +25,7 @@ #include <linux/slab.h> -#if CONFIG_ARCH_TEGRA_3x_SOC +#ifdef CONFIG_ARCH_TEGRA_3x_SOC static bool s_is_v1 = true; static int s_nr_gpus = 2; #else |