5151878443
git-svn-id: svn://svn.openwrt.org/openwrt/packages@32936 3c298f89-4303-0410-b956-a3cf2f4a3e73
20 lines
483 B
Diff
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);
|