yaffs: Change timer init call to init_timer_on_stack
[yaffs2.git] / yaffs_fs.c
index 36cbd4e..77b51cf 100644 (file)
@@ -2227,7 +2227,7 @@ static int yaffs_BackgroundThread(void *data)
                if(time_before(expires,now))
                        expires = now + HZ;
 
-               init_timer(&timer);
+               init_timer_on_stack(&timer);
                timer.expires = expires+1;
                timer.data = (unsigned long) current;
                timer.function = yaffs_background_waker;