.. | .. |
---|
19 | 19 | */ |
---|
20 | 20 | |
---|
21 | 21 | |
---|
22 | | -#if defined(CONFIG_SERIAL_PXA_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) |
---|
23 | | -#define SUPPORT_SYSRQ |
---|
24 | | -#endif |
---|
25 | | - |
---|
26 | 22 | #include <linux/ioport.h> |
---|
27 | 23 | #include <linux/init.h> |
---|
28 | 24 | #include <linux/console.h> |
---|
.. | .. |
---|
879 | 875 | sport->port.dev = &dev->dev; |
---|
880 | 876 | sport->port.flags = UPF_IOREMAP | UPF_BOOT_AUTOCONF; |
---|
881 | 877 | sport->port.uartclk = clk_get_rate(sport->clk); |
---|
| 878 | + sport->port.has_sysrq = IS_ENABLED(CONFIG_SERIAL_PXA_CONSOLE); |
---|
882 | 879 | |
---|
883 | 880 | ret = serial_pxa_probe_dt(dev, sport); |
---|
884 | 881 | if (ret > 0) |
---|