[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <494C3E20.1070800@oracle.com>
Date: Fri, 19 Dec 2008 16:36:48 -0800
From: Randy Dunlap <randy.dunlap@...cle.com>
To: linux-kernel@...r.kernel.org
CC: Mauro Carvalho Chehab <mchehab@...radead.org>,
v4l-dvb-maintainer@...uxtv.org, video4linux-list@...hat.com,
Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH -next/mmotm] media/video/tuner: fix tuner_ioctl build error
From: Randy Dunlap <randy.dunlap@...cle.com>
Fix drivers/media/video/tuner-core.c so that it will build when
CONFIG_VIDEO_ALLOW_V4L1=n:
drivers/media/video/tuner-core.c:1111: error: 'tuner_ioctl' undeclared here (not in a function)
Signed-off-by: Randy Dunlap <randy.dunlap@...cle.com>
cc: Mauro Carvalho Chehab <mchehab@...radead.org>
cc: v4l-dvb-maintainer@...uxtv.org
cc: video4linux-list@...hat.com
---
drivers/media/video/tuner-core.c | 5 +++++
1 file changed, 5 insertions(+)
--- mmotm-2008-1219-1438.orig/drivers/media/video/tuner-core.c
+++ mmotm-2008-1219-1438/drivers/media/video/tuner-core.c
@@ -919,6 +919,11 @@ static int tuner_ioctl(struct v4l2_subde
}
return -ENOIOCTLCMD;
}
+#else
+static int tuner_ioctl(struct v4l2_subdev *sd, int cmd, void *arg)
+{
+ return -ENOIOCTLCMD;
+}
#endif
static int tuner_s_config(struct v4l2_subdev *sd, const struct v4l2_priv_tun_config *cfg)
--
~Randy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists