summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjal2 <jal2>2004-01-19 19:43:20 +0000
committerjal2 <jal2>2004-01-19 19:43:20 +0000
commitb8f77fb768870020debf93b93069a3a7e6cb8af3 (patch)
tree2298477df98fd5a7747065d3d1024252d43b8d3e
parente60a8cc91261b4057864ffc7d4070c202ac734d4 (diff)
fixed compile bug for kernel < 2.4.23
-rw-r--r--at76c503-i3861.c12
-rw-r--r--at76c503-i3863.c12
-rw-r--r--at76c503-rfmd-acc.c11
-rw-r--r--at76c503-rfmd.c12
-rw-r--r--at76c505-rfmd.c12
-rw-r--r--at76c505-rfmd2958.c10
6 files changed, 64 insertions, 5 deletions
diff --git a/at76c503-i3861.c b/at76c503-i3861.c
index 3d7beb1..0df22e9 100644
--- a/at76c503-i3861.c
+++ b/at76c503-i3861.c
@@ -1,6 +1,6 @@
/* -*- linux-c -*- */
/*
- * $Id: at76c503-i3861.c,v 1.17 2004/01/17 12:15:44 jal2 Exp $
+ * $Id: at76c503-i3861.c,v 1.18 2004/01/19 19:43:20 jal2 Exp $
*
* Driver for at76c503-based devices based on the Atmel "Fast-Vnet" reference
* design using Intersil 3861 radio chips
@@ -29,8 +29,18 @@
#include <linux/module.h>
#include <linux/usb.h>
#include <linux/init.h>
+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)
#include <linux/firmware.h>
+#else
+# ifdef CONFIG_AT76C503_FIRMWARE_DOWNLOAD
+# error firmware download from user space unavail. with this kernel
+# endif
+# define FIRMWARE_NAME_MAX 30
+struct firmware {
+ size_t size;
+ u8 *data;
+};
#endif
#include "at76c503.h"
diff --git a/at76c503-i3863.c b/at76c503-i3863.c
index e394b2c..50ce025 100644
--- a/at76c503-i3863.c
+++ b/at76c503-i3863.c
@@ -1,6 +1,6 @@
/* -*- linux-c -*- */
/*
- * $Id: at76c503-i3863.c,v 1.9 2004/01/17 12:15:44 jal2 Exp $
+ * $Id: at76c503-i3863.c,v 1.10 2004/01/19 19:43:20 jal2 Exp $
*
* Driver for at76c503-based devices based on the Atmel "Fast-Vnet" reference
* design using a Intersil 3863 radio chip
@@ -28,8 +28,18 @@
#include <linux/module.h>
#include <linux/usb.h>
#include <linux/init.h>
+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)
#include <linux/firmware.h>
+#else
+# ifdef CONFIG_AT76C503_FIRMWARE_DOWNLOAD
+# error firmware download from user space unavail. with this kernel
+# endif
+# define FIRMWARE_NAME_MAX 30
+struct firmware {
+ size_t size;
+ u8 *data;
+};
#endif
#include "at76c503.h"
diff --git a/at76c503-rfmd-acc.c b/at76c503-rfmd-acc.c
index 877a2e2..d3d7ba3 100644
--- a/at76c503-rfmd-acc.c
+++ b/at76c503-rfmd-acc.c
@@ -1,6 +1,6 @@
/* -*- linux-c -*- */
/*
- * $Id: at76c503-rfmd-acc.c,v 1.9 2004/01/17 12:15:44 jal2 Exp $
+ * $Id: at76c503-rfmd-acc.c,v 1.10 2004/01/19 19:43:20 jal2 Exp $
*
* Driver for at76c503-based devices based on the Atmel "Fast-Vnet" reference
* design using RFMD radio chips in the Accton OEM layout.
@@ -31,6 +31,15 @@
#include <linux/init.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)
#include <linux/firmware.h>
+#else
+# ifdef CONFIG_AT76C503_FIRMWARE_DOWNLOAD
+# error firmware download from user space unavail. with this kernel
+# endif
+# define FIRMWARE_NAME_MAX 30
+struct firmware {
+ size_t size;
+ u8 *data;
+};
#endif
#include "at76c503.h"
diff --git a/at76c503-rfmd.c b/at76c503-rfmd.c
index 7f4b0a5..a4fc0f9 100644
--- a/at76c503-rfmd.c
+++ b/at76c503-rfmd.c
@@ -1,6 +1,6 @@
/* -*- linux-c -*- */
/*
- * $Id: at76c503-rfmd.c,v 1.22 2004/01/17 12:28:44 jal2 Exp $
+ * $Id: at76c503-rfmd.c,v 1.23 2004/01/19 19:43:20 jal2 Exp $
*
* Driver for at76c503-based devices based on the Atmel "Fast-Vnet" reference
* design using RFMD radio chips
@@ -38,8 +38,18 @@
#include <linux/module.h>
#include <linux/usb.h>
#include <linux/init.h>
+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)
#include <linux/firmware.h>
+#else
+# ifdef CONFIG_AT76C503_FIRMWARE_DOWNLOAD
+# error firmware download from user space unavail. with this kernel
+# endif
+# define FIRMWARE_NAME_MAX 30
+struct firmware {
+ size_t size;
+ u8 *data;
+};
#endif
#include "at76c503.h"
diff --git a/at76c505-rfmd.c b/at76c505-rfmd.c
index 5cd9be8..4b78a29 100644
--- a/at76c505-rfmd.c
+++ b/at76c505-rfmd.c
@@ -1,6 +1,6 @@
/* -*- linux-c -*- */
/*
- * $Id: at76c505-rfmd.c,v 1.11 2004/01/17 12:15:45 jal2 Exp $
+ * $Id: at76c505-rfmd.c,v 1.12 2004/01/19 19:43:20 jal2 Exp $
*
* Driver for at76c503-based devices based on the Atmel "Fast-Vnet" reference
* design using at76c505 with RFMD radio chips
@@ -28,8 +28,18 @@
#include <linux/module.h>
#include <linux/usb.h>
#include <linux/init.h>
+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)
#include <linux/firmware.h>
+#else
+# ifdef CONFIG_AT76C503_FIRMWARE_DOWNLOAD
+# error firmware download from user space unavail. with this kernel
+# endif
+# define FIRMWARE_NAME_MAX 30
+struct firmware {
+ size_t size;
+ u8 *data;
+};
#endif
#include "at76c503.h"
diff --git a/at76c505-rfmd2958.c b/at76c505-rfmd2958.c
index 744b8c6..4882158 100644
--- a/at76c505-rfmd2958.c
+++ b/at76c505-rfmd2958.c
@@ -28,8 +28,18 @@
#include <linux/module.h>
#include <linux/usb.h>
#include <linux/init.h>
+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)
#include <linux/firmware.h>
+#else
+# ifdef CONFIG_AT76C503_FIRMWARE_DOWNLOAD
+# error firmware download from user space unavail. with this kernel
+# endif
+# define FIRMWARE_NAME_MAX 30
+struct firmware {
+ size_t size;
+ u8 *data;
+};
#endif
#include "at76c503.h"