tty: Refactor tty_open()
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Jan 2016 05:13:53 +0000 (21:13 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2016 22:28:20 +0000 (14:28 -0800)
commitd6203d0c7b738d7ce75d5629b72640b489487cfa
tree4bf1998b4b5328433d57adae339fb6d5d5d98643
parent11e1d4aa4da1d0572b00f040ae91da85d3474f4a
tty: Refactor tty_open()

Extract the driver lookup and reopen-or-initialize logic into helper
function tty_open_by_driver(). No functional change.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c