summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-12-19 16:36:48 -0800
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-19 16:36:48 -0800
commit45232ac0864b8ed7b275e20303a8175d18b1f3d4 (patch)
tree784b0c25ad188412244960955300b6ecbbecc15c
parent162b73a47b547cad436989665074bcb093d71c57 (diff)
downloadmediapointer-dvb-s2-45232ac0864b8ed7b275e20303a8175d18b1f3d4.tar.gz
mediapointer-dvb-s2-45232ac0864b8ed7b275e20303a8175d18b1f3d4.tar.bz2
tuner: fix tuner_ioctl build error
From: Randy Dunlap <randy.dunlap@oracle.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@oracle.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--linux/drivers/media/video/tuner-core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c
index 47b58fe98..fd62aa6bd 100644
--- a/linux/drivers/media/video/tuner-core.c
+++ b/linux/drivers/media/video/tuner-core.c
@@ -933,6 +933,11 @@ static int tuner_ioctl(struct v4l2_subdev *sd, int cmd, void *arg)
}
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)