linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: mathijs@mmohlmann.demon.nl (Mathijs Mohlmann)
To: linux-fbdev-devel@lists.sourceforge.net
Subject: [trivial] timer initialization
Date: Tue, 26 Nov 2002 20:51:41 +0100	[thread overview]
Message-ID: <20021126195141.GA26539@mmohlmann.demon.nl> (raw)


	hi,

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

	Mathijs

diff -Nru a/drivers/video/fbcon.c b/drivers/video/fbcon.c
--- a/drivers/video/fbcon.c	Wed Nov 27 10:42:53 2002
+++ b/drivers/video/fbcon.c	Wed Nov 27 10:42:54 2002
@@ -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

             reply	other threads:[~2002-11-26 19:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-26 19:51 Mathijs Mohlmann [this message]
2002-12-02 20:22 ` [trivial] timer initialization James Simmons

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021126195141.GA26539@mmohlmann.demon.nl \
    --to=mathijs@mmohlmann.demon.nl \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).