serial-uartlite: Change logic how console_port is setup
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Tue, 12 Nov 2019 10:41:08 +0000 (16:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Nov 2019 13:54:15 +0000 (21:54 +0800)
commitd338838c09dee338dd86f479f554d18401068978
tree104ec2b6be32779478718f90413b18e0629ffb1c
parent74887542fdcc92ad06a48c0cca17cdf09fc8aa00
serial-uartlite: Change logic how console_port is setup

Change logic how console_port is setup by using CON_ENABLED flag
instead of index. There will be unique uart_console
structure that's why code can't use id for console_port
assignment.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Link: https://lore.kernel.org/r/1573555271-2579-1-git-send-email-shubhrajyoti.datta@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/uartlite.c