aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/mux.c
diff options
context:
space:
mode:
authorDaniel Thompson <daniel.thompson@linaro.org>2014-03-28 11:41:38 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-04-24 16:13:01 -0700
commit22766ed8a235f3c9043678c7c594afe683b2372f (patch)
tree17fb2fa8fec9ccae58634fca8edc59129473d9d1 /drivers/tty/serial/mux.c
parentserial: sh-sci: Add device tree support for r8a7779 (diff)
downloadlinux-dev-22766ed8a235f3c9043678c7c594afe683b2372f.tar.xz
linux-dev-22766ed8a235f3c9043678c7c594afe683b2372f.zip
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>
Diffstat (limited to 'drivers/tty/serial/mux.c')
-rw-r--r--drivers/tty/serial/mux.c2
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 @@
#include <asm/irq.h>
#include <asm/parisc-device.h>
-#ifdef CONFIG_MAGIC_SYSRQ
+#if defined(CONFIG_SERIAL_MUX_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
#include <linux/sysrq.h>
#define SUPPORT_SYSRQ
#endif