From daa69cefbb2244e553674dc590bd00040f88eab2 Mon Sep 17 00:00:00 2001 From: Alistair Delva Date: Wed, 4 Mar 2020 14:23:19 -0800 Subject: [PATCH] Revert "ANDROID: tty: serdev: Fix broken serial console input" We don't need this any more as devices which are consoles and also platform devices are automatically excluded from binding unless the user opts into it. This reverts commit 2fdad105a07232f954c3401f1e2609e548c896e7. Bug: 146517987 Change-Id: I2b9cc9c13870e5ecccbf04addadd48e59658aee3 Signed-off-by: Alistair Delva --- drivers/tty/serdev/serdev-ttyport.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/tty/serdev/serdev-ttyport.c b/drivers/tty/serdev/serdev-ttyport.c index 3d828e2d891c..67bb0a0b730e 100644 --- a/drivers/tty/serdev/serdev-ttyport.c +++ b/drivers/tty/serdev/serdev-ttyport.c @@ -279,11 +279,6 @@ struct device *serdev_tty_port_register(struct tty_port *port, if (!port || !drv || !parent) return ERR_PTR(-ENODEV); - if (port->console) { - /* can't convert tty's that are already in use */ - return ERR_PTR(-ENODEV); - } - ctrl = serdev_controller_alloc(parent, sizeof(struct serport)); if (!ctrl) return ERR_PTR(-ENOMEM);