hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/tty/serial/vr41xx_siu.c
....@@ -7,10 +7,6 @@
77 * Based on drivers/serial/8250.c, by Russell King.
88 */
99
10
-#if defined(CONFIG_SERIAL_VR41XX_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
11
-#define SUPPORT_SYSRQ
12
-#endif
13
-
1410 #include <linux/console.h>
1511 #include <linux/errno.h>
1612 #include <linux/init.h>
....@@ -869,6 +865,7 @@
869865 port = &siu_uart_ports[i];
870866 port->ops = &siu_uart_ops;
871867 port->dev = &dev->dev;
868
+ port->has_sysrq = IS_ENABLED(CONFIG_SERIAL_VR41XX_CONSOLE);
872869
873870 retval = uart_add_one_port(&siu_uart_driver, port);
874871 if (retval < 0) {