aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
authorMarcos Paulo de Souza <mpdesouza@suse.com>2025-02-26 16:59:03 -0300
committerPetr Mladek <pmladek@suse.com>2025-03-11 12:41:55 +0100
commit242fafe3faa761ccc27dc2ebb978ca1ec04adc25 (patch)
treeeef8dd0ce5c743a35109925f36389d16c9b090d7 /drivers/tty
parent63830aef74188354806ea3c9043dd3929c6e47f3 (diff)
downloadath-242fafe3faa761ccc27dc2ebb978ca1ec04adc25.tar.gz
printk: Rename console_stop to console_suspend
The intent of console_stop was in fact to suspend it, so rename the function accordingly. Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com> Reviewed-by: Petr Mladek <pmladek@suse.com> Reviewed-by: John Ogness <john.ogness@linutronix.de> Link: https://lore.kernel.org/r/20250226-printk-renaming-v1-3-0b878577f2e6@suse.com [pmladek@suse.com: Fixed typo in the commit message. Updated also new drm_log.c] Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/serial_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
index 74fa02b237729..ff2499dbbb822 100644
--- a/drivers/tty/serial/serial_core.c
+++ b/drivers/tty/serial/serial_core.c
@@ -2442,10 +2442,10 @@ int uart_suspend_port(struct uart_driver *drv, struct uart_port *uport)
}
/*
- * Disable the console device before suspending.
+ * Suspend the console device before suspending the port.
*/
if (uart_console(uport))
- console_stop(uport->cons);
+ console_suspend(uport->cons);
uart_change_pm(state, UART_PM_STATE_OFF);