projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a895dc0
)
uwb: neh: Use setup_timer
author
Muhammad Falak R Wani
<falakreyaz@gmail.com>
Tue, 20 Oct 2015 18:29:53 +0000
(23:59 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:52:53 +0000
(19:52 -0700)
Use timer API function setup_timer instead of init_timer to
initialize the timer.
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uwb/neh.c
patch
|
blob
|
history
diff --git
a/drivers/uwb/neh.c
b/drivers/uwb/neh.c
index 8cb71bb333c2ea830881ddc8bf19afd4096b3d60..36b5cb62c15dba7b734ffa61460fdeb3a31e79cc 100644
(file)
--- a/
drivers/uwb/neh.c
+++ b/
drivers/uwb/neh.c
@@
-223,9
+223,7
@@
struct uwb_rc_neh *uwb_rc_neh_add(struct uwb_rc *rc, struct uwb_rccb *cmd,
kref_init(&neh->kref);
INIT_LIST_HEAD(&neh->list_node);
- init_timer(&neh->timer);
- neh->timer.function = uwb_rc_neh_timer;
- neh->timer.data = (unsigned long)neh;
+ setup_timer(&neh->timer, uwb_rc_neh_timer, (unsigned long)neh);
neh->rc = rc;
neh->evt_type = expected_type;