hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/tty/serial/vt8500_serial.c
....@@ -7,10 +7,6 @@
77 * Author: Robert Love <rlove@google.com>
88 */
99
10
-#if defined(CONFIG_SERIAL_VT8500_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
11
-# define SUPPORT_SYSRQ
12
-#endif
13
-
1410 #include <linux/hrtimer.h>
1511 #include <linux/delay.h>
1612 #include <linux/io.h>
....@@ -703,6 +699,7 @@
703699 vt8500_port->uart.line = port;
704700 vt8500_port->uart.dev = &pdev->dev;
705701 vt8500_port->uart.flags = UPF_IOREMAP | UPF_BOOT_AUTOCONF;
702
+ vt8500_port->uart.has_sysrq = IS_ENABLED(CONFIG_SERIAL_VT8500_CONSOLE);
706703
707704 /* Serial core uses the magic "16" everywhere - adjust for it */
708705 vt8500_port->uart.uartclk = 16 * clk_get_rate(vt8500_port->clk) /