V4L/DVB (3927): Fix VIDEO_DEV=m, VIDEO_V4L1_COMPAT=y
authorAdrian Bunk <bunk@stusta.de>
Tue, 23 May 2006 18:56:20 +0000 (15:56 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 23 May 2006 18:56:20 +0000 (15:56 -0300)
If CONFIG_VIDEO_DEV=m and CONFIG_VIDEO_V4L1_COMPAT=y, v4l1-compat should
be built as a module (currently, it isn't built at all leading to
problems with modules using it).

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/Makefile

index 9debef9be8c887e50fb4e39f3eb2586f67b3afb5..e5bf2687b76de83f15508429f327ca0f3d4046df 100644 (file)
@@ -11,7 +11,10 @@ tuner-objs   :=      tuner-core.o tuner-types.o tuner-simple.o \
 msp3400-objs   :=      msp3400-driver.o msp3400-kthreads.o
 
 obj-$(CONFIG_VIDEO_DEV) += videodev.o v4l2-common.o compat_ioctl32.o
-obj-$(CONFIG_VIDEO_V4L1_COMPAT) += v4l1-compat.o
+
+ifeq ($(CONFIG_VIDEO_V4L1_COMPAT),y)
+  obj-$(CONFIG_VIDEO_DEV) += v4l1-compat.o
+endif
 
 obj-$(CONFIG_VIDEO_BT848) += bt8xx/
 obj-$(CONFIG_VIDEO_BT848) += tvaudio.o tda7432.o tda9875.o ir-kbd-i2c.o