summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/nvrm_user.c
diff options
context:
space:
mode:
authorGary King <gking@nvidia.com>2009-12-17 18:54:02 -0800
committerGary King <gking@nvidia.com>2009-12-17 18:54:02 -0800
commit5e7aa5242499b44046d2b68759f2fc153ac412d1 (patch)
treea377c7403d4d8d1122eb2e1942884755639a681a /arch/arm/mach-tegra/nvrm_user.c
parentfd5cdbd6470f6c06878925715371815b62da234c (diff)
tegra: don't call tegra_fb_control function when FB_TEGRA is not configured
if the tegra framebuffer driver is not compiled into the kernel, tegra_fb_control will not exist, and shouldn't be called.
Diffstat (limited to 'arch/arm/mach-tegra/nvrm_user.c')
-rw-r--r--arch/arm/mach-tegra/nvrm_user.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/nvrm_user.c b/arch/arm/mach-tegra/nvrm_user.c
index 66f5f23d8ae7..c4c2ed214930 100644
--- a/arch/arm/mach-tegra/nvrm_user.c
+++ b/arch/arm/mach-tegra/nvrm_user.c
@@ -56,7 +56,11 @@ static NvRtHandle s_RtHandle = NULL;
#define DEVICE_NAME "nvrm"
+#ifdef CONFIG_FB_TEGRA
extern int tegra_fb_control(void *in, void *out);
+#else
+#define tegra_fb_control(_i, _o) do {} while (0)
+#endif
static const struct file_operations nvrm_fops =
{