tty_port: register tty ports with serdev bus
authorRob Herring <robh@kernel.org>
Thu, 2 Feb 2017 19:48:09 +0000 (13:48 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2017 09:17:02 +0000 (10:17 +0100)
commit8ee3fde047589dc9c201251f07d0ca1dc776feca
tree3c0ad711db6bd78cff93f9e061ec796fe1254d8f
parentbed35c6dfa6a36233c3e1238a40dc1ae67955898
tty_port: register tty ports with serdev bus

Register a serdev controller with the serdev bus when a tty_port is
registered. This creates the serdev controller and create's serdev
devices for any DT child nodes of the tty_port's parent (i.e. the UART
device).

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-By: Sebastian Reichel <sre@kernel.org>
Tested-By: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_port.c