]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] n_r3964.c fix
authorAndrew Morton <akpm@digeo.com>
Sun, 13 Oct 2002 02:32:36 +0000 (19:32 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 13 Oct 2002 02:32:36 +0000 (19:32 -0700)
- drivers/char/n_r3964.c does not compile.  r3964_open() is doing an
  INIT_LIST_HEAD() on a timer->list.  But timer's don't have a `list'
  any more.

  Do an init_timer() instead.

drivers/char/n_r3964.c

index 365fc0b59d1e9fd119b81ed8636b222b127a1e84..06801b2dc8dfa7f50e0daca7a2f8376018425c41 100644 (file)
@@ -1126,7 +1126,7 @@ static int r3964_open(struct tty_struct *tty)
    
    tty->disc_data = pInfo;
 
-   INIT_LIST_HEAD(&pInfo->tmr.list);
+   init_timer(&pInfo->tmr);
    pInfo->tmr.data = (unsigned long)pInfo;
    pInfo->tmr.function = on_timeout;