forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/drivers/tty/serial/bcm63xx_uart.c
....@@ -10,10 +10,6 @@
1010 * my board.
1111 */
1212
13
-#if defined(CONFIG_SERIAL_BCM63XX_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
14
-#define SUPPORT_SYSRQ
15
-#endif
16
-
1713 #include <linux/kernel.h>
1814 #include <linux/platform_device.h>
1915 #include <linux/init.h>
....@@ -858,6 +854,7 @@
858854 port->fifosize = 16;
859855 port->uartclk = clk_get_rate(clk) / 2;
860856 port->line = pdev->id;
857
+ port->has_sysrq = IS_ENABLED(CONFIG_SERIAL_BCM63XX_CONSOLE);
861858 clk_put(clk);
862859
863860 ret = uart_add_one_port(&bcm_uart_driver, port);