Staging: vt665x: fix built-in compiling
authorAlexander Beregalov <a.beregalov@gmail.com>
Thu, 3 Sep 2009 16:38:14 +0000 (20:38 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:02:34 +0000 (12:02 -0700)
Fix this build error:
undefined reference to "__this_module"

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/vt6655/Makefile
drivers/staging/vt6655/device.h
drivers/staging/vt6656/Makefile
drivers/staging/vt6656/device.h

index 4bc4a764c8774ad838f327330fa21685ca9d50a3..931deb109ee87082dc9c0bdc7c020035d24c5f99 100644 (file)
@@ -1,5 +1,5 @@
 # TODO: all of these should be removed
-EXTRA_CFLAGS += -DLINUX -D__KERNEL__ -DMODULE -D__NO_VERSION__
+EXTRA_CFLAGS += -DLINUX -D__KERNEL__ -D__NO_VERSION__
 EXTRA_CFLAGS += -DHOSTAP
 
 vt6655_stage-y +=      device_main.o \
index 54869c9ce7562b9ca6fe6b3767c3c4bf5569bb99..fa7f0fcad33bf5a43073e0b8aaace449d26ced35 100644 (file)
 #ifndef __DEVICE_H__
 #define __DEVICE_H__
 
-#ifdef MODULE
-#ifdef MODVERSIONS
-#include <linux/modversions.h>
-#endif /* MODVERSIONS */
 #include <linux/module.h>
-#endif /* MODULE */
-
 #include <linux/types.h>
 #include <linux/init.h>
 #include <linux/mm.h>
index 7fd5a55fd46b1b903f0048386620217df0d1c815..582a3519796d8a35457db5b45a9c188710a2f552 100644 (file)
@@ -1,5 +1,5 @@
 # TODO: all of these should be removed
-EXTRA_CFLAGS += -DLINUX -D__KERNEL__ -DMODULE  -DEXPORT_SYMTAB -D__NO_VERSION__
+EXTRA_CFLAGS += -DLINUX -D__KERNEL__ -DEXPORT_SYMTAB -D__NO_VERSION__
 EXTRA_CFLAGS += -DHOSTAP
 
 vt6656_stage-y +=      main_usb.o \
index 33df6e5400e89239bbe30de9c084c85e577154fb..b02ca2d66feedb645817305d2d8268eaec89ecc0 100644 (file)
 #ifndef __DEVICE_H__
 #define __DEVICE_H__
 
-#ifdef MODULE
-#ifdef MODVERSIONS
-#include <linux/modversions.h>
-#endif /* MODVERSIONS */
 #include <linux/module.h>
-#endif /* MODULE */
-
 #include <linux/types.h>
 #include <linux/init.h>
 #include <linux/mm.h>