projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfecc1e
)
Input: turbografx - use setup_timer
author
Geliang Tang
<geliangtang@gmail.com>
Tue, 11 Apr 2017 03:38:30 +0000
(20:38 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Tue, 11 Apr 2017 03:41:40 +0000
(20:41 -0700)
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>
drivers/input/joystick/turbografx.c
patch
|
blob
|
history
diff --git
a/drivers/input/joystick/turbografx.c
b/drivers/input/joystick/turbografx.c
index
77f575d
..
a1fdc75
100644
(file)
--- a/
drivers/input/joystick/turbografx.c
+++ b/
drivers/input/joystick/turbografx.c
@@
-200,9
+200,7
@@
static void tgfx_attach(struct parport *pp)
mutex_init(&tgfx->sem);
tgfx->pd = pd;
tgfx->parportno = pp->number;
- init_timer(&tgfx->timer);
- tgfx->timer.data = (long) tgfx;
- tgfx->timer.function = tgfx_timer;
+ setup_timer(&tgfx->timer, tgfx_timer, (long)tgfx);
for (i = 0; i < n_devs; i++) {
if (n_buttons[i] < 1)