serial: uartps: Check if the device is a console
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Tue, 18 Dec 2018 12:18:40 +0000 (13:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Dec 2018 07:23:20 +0000 (08:23 +0100)
commit82b1b2ec5d4057af11395ac03209884369418a0d
treef5883625a3ef38bf5122c4a63c89964abe3916e5
parent86df8dd147233fd1705b9f7a8541d1501d4c5295
serial: uartps: Check if the device is a console

While checking for console_suspend_enabled also check if the
device is a console.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c