staging: dgap: use schedule_timeout_interruptible() instead of dgap_ms_sleep()
authorDaeseok Youn <daeseok.youn@gmail.com>
Tue, 16 Sep 2014 07:19:06 +0000 (16:19 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2014 23:53:57 +0000 (16:53 -0700)
commit492a1e7be585c88a04ba763bb77fc865700e209d
tree1f4779b4ad567ba757653675cc2c8ef1845f677f
parent335d9c85be096cf492cb3eaeef160b45e1f25d8d
staging: dgap: use schedule_timeout_interruptible() instead of dgap_ms_sleep()

Using schedule_timeout_interruptible() is exactly same as
setting a status of current process and calling  schedule_timeout().

Removes dgap_ms_sleep(), because this function is used
only when closing tty channel on dgap_tty_close().
And also removes ch_close_delay that is always set to 250
on dgap_tty_init().

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c
drivers/staging/dgap/dgap.h