summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-02-02 14:24:15 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-02-02 14:24:15 +0000
commit3921be5a40fc5ef213f8206af767c3e3034548a5 (patch)
treead42a4a75badb528945285641c6d23551eb2cfde
parent1f8d439809f69cfca558fd851b8d2c0483e11d7c (diff)
downloadmaster-31e0f0ae-3921be5a40fc5ef213f8206af767c3e3034548a5.tar.gz
master-31e0f0ae-3921be5a40fc5ef213f8206af767c3e3034548a5.tar.bz2
master-31e0f0ae-3921be5a40fc5ef213f8206af767c3e3034548a5.zip
fix compat hacks for init_work
SVN-Revision: 6253
-rw-r--r--package/d80211/src/include/compat_hacks.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/d80211/src/include/compat_hacks.h b/package/d80211/src/include/compat_hacks.h
index 07f46cbcba..49550bc924 100644
--- a/package/d80211/src/include/compat_hacks.h
+++ b/package/d80211/src/include/compat_hacks.h
@@ -10,9 +10,9 @@ struct delayed_work {
};
#define INIT_DELAYED_WORK(_work, _func) \
- INIT_WORK(&(_work)->work, _func, NULL)
+ INIT_WORK(&(_work)->work, _func, &(_work)->work)
-#define INIT_WORK_NEW(_work, _func) INIT_WORK(_work, _func, NULL)
+#define INIT_WORK_NEW(_work, _func) INIT_WORK(_work, _func, _work)
#define schedule_delayed_work(_work, interval) schedule_delayed_work(&(_work)->work, interval)
#define cancel_delayed_work(_work) cancel_delayed_work(&(_work)->work)