Skip to contentSkip to conversation

timer initialization

trivial Mathijs Mohlmann 2 participants 2 messages Nov 26, 2002 – Dec 2, 2002 Framebuffer layer

lore
Share & tools
lore
#0 lore raw
	hi,

The following is against 2.5 current and fixes an timer warning I'm getting during boot.

Mathijs

drivers/video/fbcon.c +2 -3
diff -Nru a/drivers/video/fbcon.c b/drivers/video/fbcon.c
@@ -230,9 +230,8 @@
 
 static void cursor_timer_handler(unsigned long dev_addr);
 
-static struct timer_list cursor_timer = {
-    function: cursor_timer_handler
-};
+static struct timer_list cursor_timer = 
+      TIMER_INITIALIZER(cursor_timer_handler, 0, 0);
 
 static void cursor_timer_handler(unsigned long dev_addr)
 {

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#1 lore raw
Quoted 3 lines

The following is against 2.5 current and fixes an timer warning I'm getting during boot.

I noticed :-/ I have the fix in BK. I plan to soon send Linus my changes now that fbdev is maturing.

-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en