summaryrefslogtreecommitdiff
path: root/wct4xxp
diff options
context:
space:
mode:
Diffstat (limited to 'wct4xxp')
-rw-r--r--wct4xxp/Kbuild (renamed from wct4xxp/Makefile.kernel26)4
-rw-r--r--wct4xxp/Makefile5
-rw-r--r--wct4xxp/base.c7
-rw-r--r--wct4xxp/vpm450m.h7
4 files changed, 10 insertions, 13 deletions
diff --git a/wct4xxp/Makefile.kernel26 b/wct4xxp/Kbuild
index ea6148b..da4ed97 100644
--- a/wct4xxp/Makefile.kernel26
+++ b/wct4xxp/Kbuild
@@ -2,6 +2,10 @@ obj-m += wct4xxp.o
EXTRA_CFLAGS := -I$(src)/.. $(shell $(src)/../oct612x/octasic-helper cflags $(src)/../oct612x) -Wno-undef
+ifeq ($(HOTPLUG_FIRMWARE),yes)
+ EXTRA_CFLAGS += -DHOTPLUG_FIRMWARE
+endif
+
wct4xxp-objs := base.o vpm450m.o $(shell $(src)/../oct612x/octasic-helper objects ../oct612x)
ifneq ($(HOTPLUG_FIRMWARE),yes)
diff --git a/wct4xxp/Makefile b/wct4xxp/Makefile
index a5faf45..6d7faf0 100644
--- a/wct4xxp/Makefile
+++ b/wct4xxp/Makefile
@@ -1,6 +1,9 @@
ifneq ($(KBUILD_EXTMOD),)
-include $(src)/Makefile.kernel26
+# We only get here on kernels 2.6.0-2.6.8 .
+# For newer kernels, Kbuild will be included directly by the kernel
+# build system.
+-include $(src)/Kbuild
else
diff --git a/wct4xxp/base.c b/wct4xxp/base.c
index f48bc6e..4f8decc 100644
--- a/wct4xxp/base.c
+++ b/wct4xxp/base.c
@@ -33,15 +33,12 @@
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/interrupt.h>
-#ifdef STANDALONE_ZAPATA
-#include "zaptel.h"
-#else
-#include <linux/zaptel.h>
-#endif
#ifdef LINUX26
#include <linux/moduleparam.h>
#endif
+#include "zaptel.h"
+
#include "wct4xxp.h"
#include "vpm450m.h"
diff --git a/wct4xxp/vpm450m.h b/wct4xxp/vpm450m.h
index bce3a93..41d7c60 100644
--- a/wct4xxp/vpm450m.h
+++ b/wct4xxp/vpm450m.h
@@ -24,14 +24,7 @@
#ifndef _VPM450M_H
#define _VPM450M_H
-#ifdef LINUX26
#include <linux/firmware.h>
-#else
-struct firmware {
- size_t size;
- u8 *data;
-};
-#endif
struct vpm450m;