Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ce1dbd3 authored by Alistair Delva's avatar Alistair Delva
Browse files

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 2fdad105.

Bug: 146517987
Change-Id: I2b9cc9c13870e5ecccbf04addadd48e59658aee3
Signed-off-by: default avatarAlistair Delva <adelva@google.com>
parent 1f441a86
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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);