Staging: vt665x: fix built-in compiling

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>
This commit is contained in:
Alexander Beregalov 2009-09-03 20:38:14 +04:00 committed by Greg Kroah-Hartman
parent 48118b53c6
commit 14386fd10c
4 changed files with 2 additions and 14 deletions

View 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 \

View File

@ -29,13 +29,7 @@
#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>

View 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 \

View File

@ -29,13 +29,7 @@
#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>