diff options
author | Daniel Thompson <daniel.thompson@linaro.org> | 2014-03-28 07:41:38 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-04-24 19:13:01 -0400 |
commit | 22766ed8a235f3c9043678c7c594afe683b2372f (patch) | |
tree | 17fb2fa8fec9ccae58634fca8edc59129473d9d1 | |
parent | fcbee4d49f30eb0eaa83a62e6a3cab5a892ed93f (diff) |
serial: mux: Align SUPPORT_SYSRQ behaviour with other drivers.
The mux driver is anomalous among all the serial drivers that can
define SUPPORT_SYSRQ because it can, with some configs, set
SUPPORT_SYSRQ when SERIAL_CORE_CONSOLE is not set.
Not only does this impose a pointless (but tiny) runtime overhead for
such configs but, more significantly, it adds needless complexity when
doing a code review to check for unexpected side effects of any
changes to the serial core.
This is (cross-)compile tested only because I do not have any PA-RISC
hardware.
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/serial/mux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/mux.c b/drivers/tty/serial/mux.c index 7fd6aaaacd8e..9b27d34ad49e 100644 --- a/drivers/tty/serial/mux.c +++ b/drivers/tty/serial/mux.c | |||
@@ -29,7 +29,7 @@ | |||
29 | #include <asm/irq.h> | 29 | #include <asm/irq.h> |
30 | #include <asm/parisc-device.h> | 30 | #include <asm/parisc-device.h> |
31 | 31 | ||
32 | #ifdef CONFIG_MAGIC_SYSRQ | 32 | #if defined(CONFIG_SERIAL_MUX_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) |
33 | #include <linux/sysrq.h> | 33 | #include <linux/sysrq.h> |
34 | #define SUPPORT_SYSRQ | 34 | #define SUPPORT_SYSRQ |
35 | #endif | 35 | #endif |