diff mbox

[RESEND] davinci: vpbe: fix build error when CONFIG_VIDEO_ADV_DEBUG is enabled

Message ID 1342792608-16263-1-git-send-email-prabhakar.csengg@gmail.com (mailing list archive)
State Awaiting Upstream
Headers show

Commit Message

Lad, Prabhakar July 20, 2012, 1:56 p.m. UTC
From: Lad, Prabhakar <prabhakar.lad@ti.com>

Fix build error when CONFIG_VIDEO_ADV_DEBUG is enabled,
declare the vpbe_dev variable.

Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
---
  Resending the patch since it didn't reach to the
  linux-media list.

 drivers/media/video/davinci/vpbe_display.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/drivers/media/video/davinci/vpbe_display.c b/drivers/media/video/davinci/vpbe_display.c
index f78ccc0..6fe7034 100644
--- a/drivers/media/video/davinci/vpbe_display.c
+++ b/drivers/media/video/davinci/vpbe_display.c
@@ -1517,6 +1517,8 @@  static int vpbe_display_g_register(struct file *file, void *priv,
 			struct v4l2_dbg_register *reg)
 {
 	struct v4l2_dbg_match *match = &reg->match;
+	struct vpbe_fh *fh = file->private_data;
+	struct vpbe_device *vpbe_dev = fh->disp_dev->vpbe_dev;
 
 	if (match->type >= 2) {
 		v4l2_subdev_call(vpbe_dev->venc,