Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43711
b: refs/heads/master
c: c959464
h: refs/heads/master
i:
  43709: fab5519
  43707: 85848b3
  43703: 2a69a26
  43695: 06549aa
  43679: 9df5057
  43647: f6df9bc
v: v3
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Dec 8, 2006
1 parent 20f5353 commit 79affa7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 15b611f63f0fb8709a5fae498c2d688b5d05edc9
refs/heads/master: c9594643c095da0a0ad4d5f0a1ff357a84e91524
15 changes: 4 additions & 11 deletions trunk/drivers/char/sx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1353,10 +1353,7 @@ static void sx_pollfunc(unsigned long data)

sx_interrupt(0, board);

init_timer(&board->timer);

board->timer.expires = jiffies + sx_poll;
add_timer(&board->timer);
mod_timer(&board->timer, jiffies + sx_poll);
func_exit();
}

Expand Down Expand Up @@ -2134,14 +2131,10 @@ static int sx_init_board(struct sx_board *board)

/* The timer should be initialized anyway: That way we can
safely del_timer it when the module is unloaded. */
init_timer(&board->timer);
setup_timer(&board->timer, sx_pollfunc, (unsigned long)board);

if (board->poll) {
board->timer.data = (unsigned long)board;
board->timer.function = sx_pollfunc;
board->timer.expires = jiffies + board->poll;
add_timer(&board->timer);
}
if (board->poll)
mod_timer(&board->timer, jiffies + board->poll);
} else {
board->irq = 0;
}
Expand Down

0 comments on commit 79affa7

Please sign in to comment.