diff options
author | Geliang Tang <geliangtang@gmail.com> | 2017-03-23 16:15:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-24 22:33:42 +0300 |
commit | aff55a3638a2d13de5cf0b0c45993378282cbe91 (patch) | |
tree | f410bca6f54d51817634f5a8fa92304ac69a1b4e /drivers/isdn/hardware/eicon/divasi.c | |
parent | 9096643856919eba4ea7dd462e3528bc6d230f4f (diff) | |
download | linux-aff55a3638a2d13de5cf0b0c45993378282cbe91.tar.xz |
isdn: 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: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/hardware/eicon/divasi.c')
-rw-r--r-- | drivers/isdn/hardware/eicon/divasi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/isdn/hardware/eicon/divasi.c b/drivers/isdn/hardware/eicon/divasi.c index cb88090f9cea..c61049585cbd 100644 --- a/drivers/isdn/hardware/eicon/divasi.c +++ b/drivers/isdn/hardware/eicon/divasi.c @@ -300,9 +300,8 @@ static int um_idi_open_adapter(struct file *file, int adapter_nr) p_os = (diva_um_idi_os_context_t *) diva_um_id_get_os_context(e); init_waitqueue_head(&p_os->read_wait); init_waitqueue_head(&p_os->close_wait); - init_timer(&p_os->diva_timer_id); - p_os->diva_timer_id.function = (void *) diva_um_timer_function; - p_os->diva_timer_id.data = (unsigned long) p_os; + setup_timer(&p_os->diva_timer_id, (void *)diva_um_timer_function, + (unsigned long)p_os); p_os->aborted = 0; p_os->adapter_nr = adapter_nr; return (1); |