aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-06-17 12:25:49 +0200
committerTakashi Iwai <tiwai@suse.de>2011-06-17 12:25:49 +0200
commit6fa7343c5ce6f9d5c331e7f6a5537e15e81fea35 (patch)
tree6c0cfccb9670ff362ecdb877ca5f070863a182da
parent68759b1c95d5f675548105160edc5e52344cf369 (diff)
downloadalsa-driver-build-unstable-6fa7343c5ce6f9d5c331e7f6a5537e15e81fea35.tar.gz
Define cancel_work_sync for old 2.6.x kernels
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--include/adriver.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/adriver.h b/include/adriver.h
index 7b76916f1..75440c10b 100644
--- a/include/adriver.h
+++ b/include/adriver.h
@@ -1969,6 +1969,11 @@ static inline bool flush_delayed_work_sync(struct delayed_work *dwork)
#define cancel_delayed_work_sync flush_delayed_work_sync
#endif
+/* flush_work was renamed to cancel_work_sync in 2.6.22 */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22)
+#define cancel_work_sync flush_work
+#endif
+
#endif /* < 2.6.37 */
/* pm_wakeup_event() wrapper */