mxser: use tty_port_close() in mxser_close()
authorJiri Slaby <jslaby@suse.cz>
Thu, 18 Nov 2021 07:31:16 +0000 (08:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 17:33:22 +0000 (18:33 +0100)
commitc7ec012f6c563a84fc5c3052d490292a129413b7
treee5a295fa9e460a399d5361efb85810a377642a20
parent467b4c47880dc8aaf26e31262d19271674fa862a
mxser: use tty_port_close() in mxser_close()

Finally, the mxser_close() code in is mostly identical to
tty_port_close(), so replace the code by a single call to the function.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20211118073125.12283-11-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/mxser.c