[COMMON] serial: samsung: change the routine for detecting consone UART port
authorYoungmin Nam <youngmin.nam@samsung.com>
Mon, 12 Dec 2016 01:24:50 +0000 (10:24 +0900)
committermyung-su.cha <myung-su.cha@samsung.com>
Wed, 9 May 2018 12:14:45 +0000 (21:14 +0900)
Change-Id: I16e951bcf624d98f0117ac891e981682274d53f1
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
drivers/tty/serial/samsung.c

index 6393e0118acf2fac29b9f7e3955d8bb8dfa7e300..acc080eecb925658c04fd4ca85130555667bb4d2 100644 (file)
@@ -1476,7 +1476,7 @@ static int s3c24xx_serial_notifier(struct notifier_block *self,
        case SICD_ENTER:
        case SICD_AUD_ENTER:
                list_for_each_entry(ourport, &drvdata_list, node) {
-                       if (uart_console(&ourport->port))
+                       if (ourport->port.line == CONFIG_S3C_LOWLEVEL_UART_PORT)
                                continue;
 
                        port = &ourport->port;
@@ -1498,7 +1498,7 @@ static int s3c24xx_serial_notifier(struct notifier_block *self,
        case SICD_EXIT:
        case SICD_AUD_EXIT:
                list_for_each_entry(ourport, &drvdata_list, node) {
-                       if (uart_console(&ourport->port))
+                       if (ourport->port.line == CONFIG_S3C_LOWLEVEL_UART_PORT)
                                continue;
 
                        port = &ourport->port;