staging: speakup: use tty_kopen and tty_kclose
authorOkash Khawaja <okash.khawaja@gmail.com>
Thu, 20 Jul 2017 07:22:37 +0000 (08:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 14:15:42 +0000 (16:15 +0200)
commit084a473532a499eff5a14cbba82f43600df8f992
treee5bb99896efa02eb90e295ecab1c361881fccc5f
parenta09ac3974d0c0b25dfa70f8076546bc4876dd7a8
staging: speakup: use tty_kopen and tty_kclose

This patch replaces call to tty_open_by_driver with a tty_kopen and
uses tty_kclose instead of tty_release_struct to close it.

Signed-off-by: Okash Khawaja <okash.khawaja@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/spk_ttyio.c