diff options
| author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-29 16:32:35 -0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-29 16:32:35 -0200 |
| commit | 7913005c82ce9ebc130fb4e39927e6f4965e62da (patch) | |
| tree | 048dd1addee52488b21388482cedde20317cafaa /linux/drivers/media/Kconfig | |
| parent | 2329b257936fc4fac065abf560327406469bbb57 (diff) | |
| download | mediapointer-dvb-s2-7913005c82ce9ebc130fb4e39927e6f4965e62da.tar.gz mediapointer-dvb-s2-7913005c82ce9ebc130fb4e39927e6f4965e62da.tar.bz2 | |
Fix bug #9833: regression when compiling V4L without I2C
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Adrian Bunk reported:
> > Commit 8ffbc6559493c64d6194c92d856196fdaeb8a5fb causes the following
> > compile error with CONFIG_VIDEO_DEV=y/m, CONFIG_I2C=n:
> >
> > <-- snip -->
> >
> > ...
> > MODPOST 26 modules
> > ERROR: "i2c_attach_client" [drivers/media/video/v4l2-common.ko] undefined!
> > make[2]: *** [__modpost] Error 1
> >
> > <-- snip -->
...
And what should happen if CONFIG_VIDEO_DEV=y, CONFIG_I2C=m?
CC: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/Kconfig')
| -rw-r--r-- | linux/drivers/media/Kconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drivers/media/Kconfig b/linux/drivers/media/Kconfig index 8f4a45346..707b20d7e 100644 --- a/linux/drivers/media/Kconfig +++ b/linux/drivers/media/Kconfig @@ -25,6 +25,11 @@ config VIDEO_DEV To compile this driver as a module, choose M here: the module will be called videodev. +config VIDEO_V4L2_COMMON + tristate + depends on (I2C || I2C=n) && VIDEO_DEV + default (I2C || I2C=n) && VIDEO_DEV + config VIDEO_V4L1 bool "Enable Video For Linux API 1 (DEPRECATED)" depends on VIDEO_DEV |
