mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-09-30 16:11:18 +02:00
fix compat hacks for init_work
SVN-Revision: 6253
This commit is contained in:
parent
1f8d439809
commit
3921be5a40
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user