aboutsummaryrefslogtreecommitdiffstats
path: root/package/d80211
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
commit23a17d34016df6f92bcd157e17da91c0df7a6d0a (patch)
tree77a135ac18a108baaa9a3041f14924b15d5c4801 /package/d80211
parentf56894135c9acd05eb8520fed6e9b7f38a30300d (diff)
downloadupstream-23a17d34016df6f92bcd157e17da91c0df7a6d0a.tar.gz
upstream-23a17d34016df6f92bcd157e17da91c0df7a6d0a.tar.bz2
upstream-23a17d34016df6f92bcd157e17da91c0df7a6d0a.zip
fix compat hacks for init_work
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6253 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/d80211')
-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)