From a.beregalov@gmail.com Fri Sep 11 15:26:06 2009 From: Alexander Beregalov Date: Thu, 3 Sep 2009 20:38:14 +0400 Subject: Staging: vt665x: fix built-in compiling To: gregkh@suse.de, linux-kernel@vger.kernel.org Cc: Alexander Beregalov Message-ID: <1251995894-29585-1-git-send-email-a.beregalov@gmail.com> Fix this build error: undefined reference to "__this_module" Signed-off-by: Alexander Beregalov Signed-off-by: Greg Kroah-Hartman --- drivers/staging/vt6655/Makefile | 2 +- drivers/staging/vt6655/device.h | 6 ------ drivers/staging/vt6656/Makefile | 2 +- drivers/staging/vt6656/device.h | 6 ------ 4 files changed, 2 insertions(+), 14 deletions(-) --- a/drivers/staging/vt6655/device.h +++ b/drivers/staging/vt6655/device.h @@ -29,13 +29,7 @@ #ifndef __DEVICE_H__ #define __DEVICE_H__ -#ifdef MODULE -#ifdef MODVERSIONS -#include -#endif /* MODVERSIONS */ #include -#endif /* MODULE */ - #include #include #include --- a/drivers/staging/vt6655/Makefile +++ b/drivers/staging/vt6655/Makefile @@ -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 \ --- a/drivers/staging/vt6656/device.h +++ b/drivers/staging/vt6656/device.h @@ -29,13 +29,7 @@ #ifndef __DEVICE_H__ #define __DEVICE_H__ -#ifdef MODULE -#ifdef MODVERSIONS -#include -#endif /* MODVERSIONS */ #include -#endif /* MODULE */ - #include #include #include --- a/drivers/staging/vt6656/Makefile +++ b/drivers/staging/vt6656/Makefile @@ -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 \