summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2007-06-24 09:52:12 +0000
committerStefan Schweizer <genstef@gentoo.org>2007-06-24 09:52:12 +0000
commitb424683e28ae344a4a0ebe412bb3468d6604789a (patch)
tree8aceb3827a4ce098fc8a2722d5f4b64a5ab86611 /net-wireless/at76c503a/files
parentfixing dev-util/glade for bug #172106 (diff)
downloadhistorical-b424683e28ae344a4a0ebe412bb3468d6604789a.tar.gz
historical-b424683e28ae344a4a0ebe412bb3468d6604789a.tar.bz2
historical-b424683e28ae344a4a0ebe412bb3468d6604789a.zip
Add init work patch thanks to Ryan Hendrickson <rhendric@mit.edu> in bug 182866
Package-Manager: portage-2.1.3_rc5
Diffstat (limited to 'net-wireless/at76c503a/files')
-rw-r--r--net-wireless/at76c503a/files/at76c503a-2.6.20-init_work.patch30
1 files changed, 30 insertions, 0 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
new file mode 100644
index 000000000000..9aa555096779
--- /dev/null
+++ b/net-wireless/at76c503a/files/at76c503a-2.6.20-init_work.patch
@@ -0,0 +1,30 @@
+--- 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;
+