2006-11-20 03:17:35

by Michael Ira Krufky

[permalink] [raw]
Subject: [2.6.18.y PATCH] 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.

Signed-off-by: Maciej W. Rozycki <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Michael Krufky <[email protected]>

diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig
index ed4aa4e..9f7e1fe 100644
--- a/drivers/media/Kconfig
+++ b/drivers/media/Kconfig
@@ -54,6 +54,7 @@ config VIDEO_V4L1_COMPAT

config VIDEO_V4L2
bool
+ depends on VIDEO_DEV
default y

source "drivers/media/video/Kconfig"