.. | .. |
---|
10 | 10 | * Copyright (C) 2000 Deep Blue Solutions Ltd. |
---|
11 | 11 | */ |
---|
12 | 12 | |
---|
13 | | -#if defined(CONFIG_SERIAL_PNX8XXX_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) |
---|
14 | | -#define SUPPORT_SYSRQ |
---|
15 | | -#endif |
---|
16 | | - |
---|
17 | 13 | #include <linux/module.h> |
---|
18 | 14 | #include <linux/ioport.h> |
---|
19 | 15 | #include <linux/init.h> |
---|
.. | .. |
---|
220 | 216 | else if (status & FIFO_TO_SM(PNX8XXX_UART_FIFO_RXFE)) |
---|
221 | 217 | flg = TTY_FRAME; |
---|
222 | 218 | |
---|
223 | | -#ifdef SUPPORT_SYSRQ |
---|
224 | 219 | sport->port.sysrq = 0; |
---|
225 | | -#endif |
---|
226 | 220 | } |
---|
227 | 221 | |
---|
228 | 222 | if (uart_handle_sysrq_char(&sport->port, ch)) |
---|
.. | .. |
---|
800 | 794 | if (pnx8xxx_ports[i].port.mapbase != res->start) |
---|
801 | 795 | continue; |
---|
802 | 796 | |
---|
| 797 | + pnx8xxx_ports[i].port.has_sysrq = IS_ENABLED(CONFIG_SERIAL_PNX8XXX_CONSOLE); |
---|
803 | 798 | pnx8xxx_ports[i].port.dev = &pdev->dev; |
---|
804 | 799 | uart_add_one_port(&pnx8xxx_reg, &pnx8xxx_ports[i].port); |
---|
805 | 800 | platform_set_drvdata(pdev, &pnx8xxx_ports[i]); |
---|