diff options
Diffstat (limited to 'net-wireless/at76c503a/files/at76c503a-2.6.20-init_work.patch')
-rw-r--r-- | net-wireless/at76c503a/files/at76c503a-2.6.20-init_work.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/net-wireless/at76c503a/files/at76c503a-2.6.20-init_work.patch b/net-wireless/at76c503a/files/at76c503a-2.6.20-init_work.patch deleted file mode 100644 index 9aa555096779..000000000000 --- a/net-wireless/at76c503a/files/at76c503a-2.6.20-init_work.patch +++ /dev/null @@ -1,30 +0,0 @@ ---- at76c503.c~ 2007-06-22 00:35:09.000000000 -0400 -+++ at76c503.c 2007-06-22 00:34:28.000000000 -0400 -@@ -2299,9 +2299,15 @@ - dev->netdev->name, flag); - } - -+#if KERNEL_VERSION(2,6,20) > LINUX_VERSION_CODE - static void kevent(void *data) - { - struct at76c503 *dev = data; -+#else -+static void kevent(struct work_struct *work) -+{ -+ struct at76c503 *dev = container_of(work, struct at76c503, kevent); -+#endif - int ret; - unsigned long flags; - -@@ -6371,7 +6377,11 @@ - dev->netdev = netdev; - - init_MUTEX (&dev->sem); -+#if KERNEL_VERSION(2,6,20) > LINUX_VERSION_CODE - INIT_WORK (&dev->kevent, kevent, dev); -+#else -+ INIT_WORK (&dev->kevent, kevent); -+#endif - - dev->open_count = 0; - |