Skip to contentSkip to conversation

usbtv: fix compiler error due to missing module.h

PATCH New Hans Verkuil 1 participant 1 message Feb 4, 2014 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usbtv: fix compiler error due to missing module.h

usbtv-video.c needs module.h. So move the module.h include from usbtv-core.c to usbtv.h, that way both core.c and video.c have it.

drivers/media/usb/usbtv/usbtv-core.c +0 -2
index e89e48b..d543928 100644
@@ -28,8 +28,6 @@
  * GNU General Public License ("GPL").
  */
 
-#include <linux/module.h>
-
 #include "usbtv.h"
 
 int usbtv_set_regs(struct usbtv *usbtv, const u16 regs[][2], int size)
drivers/media/usb/usbtv/usbtv.h +1 -0
index 536343d..cb1d388 100644
@@ -19,6 +19,7 @@
  * GNU General Public License ("GPL").
  */
 
+#include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/usb.h>