diff options
author | Muhammad Falak R Wani <falakreyaz@gmail.com> | 2015-10-20 20:29:53 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-25 03:52:53 +0100 |
commit | b9ca0c948c921e960006aaf319a29c004917cdf6 (patch) | |
tree | 08d900008700643f382474aa6609a1049422bdc8 | |
parent | uwb: rsv: Use setup_timer (diff) | |
download | linux-b9ca0c948c921e960006aaf319a29c004917cdf6.tar.xz linux-b9ca0c948c921e960006aaf319a29c004917cdf6.zip |
uwb: neh: Use setup_timer
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>
-rw-r--r-- | drivers/uwb/neh.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/uwb/neh.c b/drivers/uwb/neh.c index 8cb71bb333c2..36b5cb62c15d 100644 --- 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; |