kernel/drivers/tty/serial/arc_uart.c
.. .. @@ -21,10 +21,6 @@ 21 21 * -check if sysreq works 22 22 */ 23 23 24 -#if defined(CONFIG_SERIAL_ARC_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)25 -#define SUPPORT_SYSRQ26 -#endif27 -28 24 #include <linux/module.h> 29 25 #include <linux/serial.h> 30 26 #include <linux/console.h> .. .. @@ -625,6 +621,7 @@ 625 621 port->flags = UPF_BOOT_AUTOCONF; 626 622 port->line = dev_id; 627 623 port->ops = &arc_serial_pops; 624 + port->has_sysrq = IS_ENABLED(CONFIG_SERIAL_ARC_CONSOLE);628 625 629 626 port->fifosize = ARC_UART_TX_FIFO_SIZE; 630 627