On 06/02/2015 08:03 AM, Axel Lin wrote: > Use uart_console_device() rather than implement exactly the same code in > cris_console_device(). > > Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx> > --- > drivers/tty/serial/etraxfs-uart.c | 9 +-------- > 1 file changed, 1 insertion(+), 8 deletions(-) > > diff --git a/drivers/tty/serial/etraxfs-uart.c b/drivers/tty/serial/etraxfs-uart.c > index a57301a..7444ca3 100644 > --- a/drivers/tty/serial/etraxfs-uart.c > +++ b/drivers/tty/serial/etraxfs-uart.c > @@ -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, Acked-by: Niklas Cassel <nks@xxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html