1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 00:30:16 +02:00

fix compat hacks for init_work

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6253 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2007-02-02 14:24:15 +00:00
parent ae70769b82
commit 03faf73e66

View File

@ -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)