V4L/DVB (7115): Fix bug #9833: regression when compiling V4L without I2C
authorMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 29 Jan 2008 21:32:35 +0000 (18:32 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 18 Feb 2008 14:14:50 +0000 (11:14 -0300)
commita9254475bbfbed5f0596d952c6a3c9806e19dd0b
treef397e0332af0e2326e23a2f27db86c2262c5e755
parent1309d4e68497184d2fd87e892ddf14076c2bda98
V4L/DVB (7115): Fix bug #9833: regression when compiling V4L without I2C

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>
drivers/media/Kconfig
drivers/media/video/Makefile
drivers/media/video/v4l2-common.c