Skip to contentSkip to conversation

V4L: Do not enable VIDEO_V4L2 unconditionally

PATCH New Michael Krufky 1 participant 1 message Nov 20, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 V4L: Do not enable VIDEO_V4L2 unconditionally

From: Maciej W. Rozycki <[email protected]>

V4L: Do not enable VIDEO_V4L2 unconditionally

The VIDEO_V4L2 config setting is enabled unconditionally, even for configurations with no support for this subsystem whatsoever. The following patch adds the necessary dependency.

drivers/media/Kconfig +1 -0
index ed4aa4e..9f7e1fe 100644
@@ -54,6 +54,7 @@ config VIDEO_V4L1_COMPAT
 
 config VIDEO_V4L2
 	bool
+	depends on VIDEO_DEV
 	default y
 
 source "drivers/media/video/Kconfig"