packages/libs/zaptel-1.4.x/patches/390-include_spinlock_h.patch
florian 5151878443 [package] zaptel-1.4.x: fix build failure, refresh patches move to "Voice over IP"
git-svn-id: svn://svn.openwrt.org/openwrt/packages@32936 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-08-01 18:40:32 +00:00

20 lines
483 B
Diff

--- a/kernel/ztdummy.c
+++ b/kernel/ztdummy.c
@@ -79,6 +79,7 @@
#include <asm/io.h>
#endif
#ifdef LINUX26
+#include <linux/spinlock.h>
#ifdef USE_HIGHRESTIMER
#include <linux/hrtimer.h>
#endif
@@ -328,7 +329,7 @@ int init_module(void)
#ifdef LINUX26
ztd->counter = 0;
#ifdef USE_RTC
- ztd->rtclock = SPIN_LOCK_UNLOCKED;
+ spin_lock_init(&ztd->rtclock);
ztd->rtc_task.func = ztdummy_rtc_interrupt;
ztd->rtc_task.private_data = ztd;
err = rtc_register(&ztd->rtc_task);