diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-18 23:26:13 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-18 23:26:13 -0300 |
commit | 7921b528872c180d255e21140cd54502dda70a7a (patch) | |
tree | 4fd9adef130ee33e885254b9b5042033b1bc21c9 /linux/drivers/media/video/v4l2-device.c | |
parent | 45d1e795c057e023fc615bedc55da461dfbdaef3 (diff) | |
parent | c3f603f1ba42f82cfb30e06f08d35cf672e90147 (diff) | |
download | mediapointer-dvb-s2-7921b528872c180d255e21140cd54502dda70a7a.tar.gz mediapointer-dvb-s2-7921b528872c180d255e21140cd54502dda70a7a.tar.bz2 |
merge: http://linuxtv.org/hg/~eandren/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/v4l2-device.c')
-rw-r--r-- | linux/drivers/media/video/v4l2-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/v4l2-device.c b/linux/drivers/media/video/v4l2-device.c index 655d19cd6..016c62f6c 100644 --- a/linux/drivers/media/video/v4l2-device.c +++ b/linux/drivers/media/video/v4l2-device.c @@ -86,7 +86,7 @@ void v4l2_device_unregister(struct v4l2_device *v4l2_dev) /* Unregister subdevs */ list_for_each_entry_safe(sd, next, &v4l2_dev->subdevs, list) { v4l2_device_unregister_subdev(sd); -#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) +#if defined(CONFIG_I2C) || (defined(CONFIG_I2C_MODULE) && defined(MODULE)) #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26) if (sd->flags & V4L2_SUBDEV_FL_IS_I2C) { struct i2c_client *client = v4l2_get_subdevdata(sd); |