patch-2.4.9 linux/drivers/ieee1394/ieee1394_types.h

Next file: linux/drivers/ieee1394/nodemgr.c
Previous file: linux/drivers/ieee1394/ieee1394_transactions.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.8/linux/drivers/ieee1394/ieee1394_types.h linux/drivers/ieee1394/ieee1394_types.h
@@ -9,7 +9,22 @@
 #include <asm/byteorder.h>
 
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0)
+#include "linux22compat.h"
+#else
+#define V22_COMPAT_MOD_INC_USE_COUNT do {} while (0)
+#define V22_COMPAT_MOD_DEC_USE_COUNT do {} while (0)
+#define OWNER_THIS_MODULE owner: THIS_MODULE,
+
+#define INIT_TQ_LINK(tq) INIT_LIST_HEAD(&(tq).list)
+#define INIT_TQ_HEAD(tq) INIT_LIST_HEAD(&(tq))
+#endif
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,18)
+#include <asm/spinlock.h>
+#else
 #include <linux/spinlock.h>
+#endif
 
 #ifndef MIN
 #define MIN(a,b) ((a) < (b) ? (a) : (b))

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)