.. | .. |
---|
11 | 11 | * Copyright (C) 2009 Kristoffer Glembo <kristoffer@gaisler.com>, Aeroflex Gaisler AB |
---|
12 | 12 | */ |
---|
13 | 13 | |
---|
14 | | -#if defined(CONFIG_SERIAL_GRLIB_GAISLER_APBUART_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) |
---|
15 | | -#define SUPPORT_SYSRQ |
---|
16 | | -#endif |
---|
17 | | - |
---|
18 | 14 | #include <linux/module.h> |
---|
19 | 15 | #include <linux/tty.h> |
---|
20 | 16 | #include <linux/tty_flip.h> |
---|
.. | .. |
---|
626 | 622 | port->irq = 0; |
---|
627 | 623 | port->iotype = UPIO_MEM; |
---|
628 | 624 | port->ops = &grlib_apbuart_ops; |
---|
| 625 | + port->has_sysrq = IS_ENABLED(CONFIG_SERIAL_GRLIB_GAISLER_APBUART_CONSOLE); |
---|
629 | 626 | port->flags = UPF_BOOT_AUTOCONF; |
---|
630 | 627 | port->line = line; |
---|
631 | 628 | port->uartclk = *freq_hz; |
---|