diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-05-14 03:36:22 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-05-14 01:56:47 -0400 |
commit | 039d40019f3c5e26ea50ec5af4270189f63365e1 (patch) | |
tree | b113e4a66cf9e8790e645b90b818cda4f64e6148 /drivers/media | |
parent | ee04e0faad386141f52dd812f220a2f0d128f1c6 (diff) |
V4L/DVB (7898): Fix VIDEO_MEDIA Kconfig logic
If one of DVB_CORE or VIDEO_DEV is a module, the modules that can be used by
both DVB and V4L cores should also be a module, otherwise, it will break its
dependencies. This Kconfig logic implements the following:
CONFIG_VIDEO_DEV CONFIG_DVB_CORE CONFIG_VIDEO_MEDIA
N N N
N M M
N Y Y
M N M
M M M
M Y M
Y N Y
Y M M
Y Y Y
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/Kconfig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig index ddf57e135c6c..7a7803b5d497 100644 --- a/drivers/media/Kconfig +++ b/drivers/media/Kconfig | |||
@@ -89,8 +89,7 @@ config DVB_CORE | |||
89 | 89 | ||
90 | config VIDEO_MEDIA | 90 | config VIDEO_MEDIA |
91 | tristate | 91 | tristate |
92 | default DVB_CORE || VIDEO_DEV | 92 | default (DVB_CORE && (VIDEO_DEV = n)) || (VIDEO_DEV && (DVB_CORE = n)) || (DVB_CORE && VIDEO_DEV) |
93 | depends on DVB_CORE || VIDEO_DEV | ||
94 | 93 | ||
95 | comment "Multimedia drivers" | 94 | comment "Multimedia drivers" |
96 | 95 | ||