yaffs: Change timer init call to init_timer_on_stack
authorCharles Manning <cdhmanning@gmail.com>
Thu, 17 Jun 2010 05:51:33 +0000 (17:51 +1200)
committerCharles Manning <cdhmanning@gmail.com>
Thu, 17 Jun 2010 05:51:33 +0000 (17:51 +1200)
This call is more debug friendly and does not trigger certain kernel warmings.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
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;