summaryrefslogtreecommitdiffstats
path: root/drivers/input/joystick
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2017-04-10 20:37:40 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-04-10 20:41:38 -0700
commitc9a9b72f34bf67a49743b26ab1f94c1349a389ad (patch)
treee03daca2a7abb37813e8d41fc5888c1f68c8be0b /drivers/input/joystick
parentdd224085d73ab04d14fe78a5fd9970fa808a60fb (diff)
downloadlinux-c9a9b72f34bf67a49743b26ab1f94c1349a389ad.tar.bz2
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>
Diffstat (limited to 'drivers/input/joystick')
-rw-r--r--drivers/input/joystick/db9.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/input/joystick/db9.c b/drivers/input/joystick/db9.c
index da326090c2b0..f4ad83eab67f 100644
--- a/drivers/input/joystick/db9.c
+++ b/drivers/input/joystick/db9.c
@@ -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++) {