From: Mauro Carvalho Chehab Date: Thu, 21 Mar 2013 18:46:18 +0000 (-0300) Subject: [media] hdpvr-video: Use the proper check for I2C support X-Git-Tag: v4.13~8860^2~1044 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=54d80904b4c1f7aa1d569d07ca3e62fba0daf3a2;p=mirror_ubuntu-bionic-kernel.git [media] hdpvr-video: Use the proper check for I2C support As reported by Geert Uytterhoeven : drivers/media/usb/hdpvr/hdpvr-video.c: warning: "CONFIG_I2C_MODULE" is not defined [-Wundef] Reported-by: Geert Uytterhoeven Thanks-to: Randy Dunlap Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/hdpvr/hdpvr-video.c b/drivers/media/usb/hdpvr/hdpvr-video.c index da6b77912222..6a15405360dc 100644 --- a/drivers/media/usb/hdpvr/hdpvr-video.c +++ b/drivers/media/usb/hdpvr/hdpvr-video.c @@ -10,6 +10,7 @@ */ #include +#include #include #include #include @@ -1238,7 +1239,7 @@ static void hdpvr_device_release(struct video_device *vdev) v4l2_device_unregister(&dev->v4l2_dev); /* deregister I2C adapter */ -#if defined(CONFIG_I2C) || (CONFIG_I2C_MODULE) +#if IS_ENABLED(CONFIG_I2C) mutex_lock(&dev->i2c_mutex); i2c_del_adapter(&dev->i2c_adapter); mutex_unlock(&dev->i2c_mutex);