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

Commit e9bb4b51 authored by Axel Lin's avatar Axel Lin Committed by Greg Kroah-Hartman
Browse files

serial: etraxfs-uart: Convert to uart_console_device instead of open-coded



The implementation of cris_console_device() is exactly the same as
uart_console_device(), so let's switch to use uart_console_device().

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarNiklas Cassel <nks@flawful.org>
Acked-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5bac4b3d
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -112,17 +112,10 @@ cris_console_setup(struct console *co, char *options)
	return 0;
}

static struct tty_driver *cris_console_device(struct console *co, int *index)
{
	struct uart_driver *p = co->data;
	*index = co->index;
	return p->tty_driver;
}

static struct console cris_console = {
	.name = "ttyS",
	.write = cris_console_write,
	.device = cris_console_device,
	.device = uart_console_device,
	.setup = cris_console_setup,
	.flags = CON_PRINTBUFFER,
	.index = -1,