Input: db9 - use setup_timer
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
dd224085d7
commit
c9a9b72f34
1 changed files with 1 additions and 3 deletions
|
@ -609,9 +609,7 @@ static void db9_attach(struct parport *pp)
|
|||
db9->pd = pd;
|
||||
db9->mode = mode;
|
||||
db9->parportno = pp->number;
|
||||
init_timer(&db9->timer);
|
||||
db9->timer.data = (long) db9;
|
||||
db9->timer.function = db9_timer;
|
||||
setup_timer(&db9->timer, db9_timer, (long)db9);
|
||||
|
||||
for (i = 0; i < (min(db9_mode->n_pads, DB9_MAX_DEVICES)); i++) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue