V4L/DVB (9939): tuner: fix tuner_ioctl compile error if V4L1 ioctls are disabled.
authorHans Verkuil <[email protected]>
Fri, 19 Dec 2008 10:07:56 +0000 (07:07 -0300)
committerMauro Carvalho Chehab <[email protected]>
Tue, 30 Dec 2008 11:39:24 +0000 (09:39 -0200)
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/video/tuner-core.c

index 22cf0c48b4507d02edbc59751ab7fbd9830e5a01..694087bfa77db4a671c729ec4cc16235fe87b11c 100644 (file)
@@ -1112,7 +1112,9 @@ static int tuner_resume(struct i2c_client *c)
 static const struct v4l2_subdev_core_ops tuner_core_ops = {
        .log_status = tuner_log_status,
        .s_standby = tuner_s_standby,
+#ifdef CONFIG_VIDEO_ALLOW_V4L1
        .ioctl = tuner_ioctl,
+#endif
 };
 
 static const struct v4l2_subdev_tuner_ops tuner_tuner_ops = {