While compiling the very latest for_v3.3 branch with the very latest media_build
on a 3.1 kernel I got more compile errors for a missing module.h header.

Add these includes.

Signed-off-by: Hans Verkuil <hans.verk...@cisco.com>

Regards,

        Hans

diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c
index 6edc9ba..b826867 100644
--- a/drivers/media/media-device.c
+++ b/drivers/media/media-device.c
@@ -21,6 +21,7 @@
  */
 
 #include <linux/types.h>
+#include <linux/module.h>
 #include <linux/ioctl.h>
 #include <linux/media.h>
 #include <linux/export.h>
diff --git a/drivers/media/video/hdpvr/hdpvr-i2c.c 
b/drivers/media/video/hdpvr/hdpvr-i2c.c
index 82e819f..48cf133 100644
--- a/drivers/media/video/hdpvr/hdpvr-i2c.c
+++ b/drivers/media/video/hdpvr/hdpvr-i2c.c
@@ -15,6 +15,7 @@
 
 #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
 
+#include <linux/module.h>
 #include <linux/i2c.h>
 #include <linux/slab.h>
 #include <linux/export.h>
diff --git a/drivers/media/video/v4l2-subdev.c 
b/drivers/media/video/v4l2-subdev.c
index 65ade5f..5c3abc5 100644
--- a/drivers/media/video/v4l2-subdev.c
+++ b/drivers/media/video/v4l2-subdev.c
@@ -20,6 +20,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#include <linux/module.h>
 #include <linux/ioctl.h>
 #include <linux/slab.h>
 #include <linux/types.h>
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to