tegra_camera: fix building error when disable CONFIG_TEGRA_CAMERA
authorBryan Wu <pengw@nvidia.com>
Fri, 30 Nov 2012 00:01:28 +0000 (16:01 -0800)
committerWinnie Hsu <whsu@nvidia.com>
Mon, 17 Dec 2012 19:29:27 +0000 (11:29 -0800)
commit4d667a6aff6ce8089973b73a5e6645e750045356
tree17ddbbc3b91d072c067f960db133628d2b0e1867
parent48105b8d2b4ae39660655fb26fc7d6459643d3d4
tegra_camera: fix building error when disable CONFIG_TEGRA_CAMERA

  LD      vmlinux.o
drivers/built-in.o: In function `is_tegra_camera_on':
/home/roc/Work/bug_vip/source_vibrante/kernel/include/media/
tegra_camera.h:59: multiple definition of `is_tegra_camera_on'
arch/arm/mach-tegra/built-in.o:/home/roc/Work/bug_vip/source_vibrante
/kernel/include/media/tegra_camera.h:59: first defined here
make: *** [vmlinux.o] Error 1

Commit '678708d WAR: gr3d: limit 3d clock when camera is on'
introduced a function is_tegra_camera_on(), which is dummy when
CONFIG_TEGRA_CAMERA is disabled. But it will be multiple defined
when includ this header file in multiple C files.

So marking it as static will kill this error.

Change-Id: I9dbcf1231f744c23e761d70da0bfc874fb286e4a
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/167510
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
include/media/tegra_camera.h