serdev: ttyport: enforce tty-driver open() requirement
authorJohan Hovold <johan@kernel.org>
Mon, 16 Oct 2017 13:06:19 +0000 (15:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:10:33 +0000 (10:10 +0100)
commitb59dc14b0b102d42d6bd54ae77848ddc00a4596c
treeb3d0058fc3c7be7784cf4ad24de04b6203413f53
parent669ff2a9aa71edea93a0b74c1273080cad68dfb7
serdev: ttyport: enforce tty-driver open() requirement

[ Upstream commit dee7d0f3b200c67c6ee96bd37c6e8fa52690ab56 ]

The tty-driver open routine is mandatory, but the serdev
tty-port-controller implementation did not treat it as such and would
instead fall back to calling tty_port_open() directly.

Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serdev/serdev-ttyport.c