summaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorMark A. Greer <mgreer@mvista.com>2006-03-25 03:08:27 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-25 08:23:02 -0800
commit6261c8e34f07f09270b37e14c05962c952cbeebe (patch)
tree0778accb4d59ed82e5b5275f1efecc874debd174 /drivers/serial
parenta30ff2e348af9d3a1782103130c88960550a773f (diff)
downloadop-kernel-dev-6261c8e34f07f09270b37e14c05962c952cbeebe.zip
op-kernel-dev-6261c8e34f07f09270b37e14c05962c952cbeebe.tar.gz
[PATCH] serial: mpsc driver has definition of SUPPORT_SYSRQ below include of serial_core.h
The definition of SUPPORT_SYSRQ must come before #include of serial_core.h. This patch moves the definition of SUPPORT_SYSRQ to be just after the #include of config.h to make it consistent with 8250.c. Reported-by: Stephane Chazelas <Stephane@artesyncp.com> Signed-off-by: Mark A. Greer <mgreer@mvista.com> Cc: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/mpsc.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/serial/mpsc.h b/drivers/serial/mpsc.h
index 678dbcf..1591330 100644
--- a/drivers/serial/mpsc.h
+++ b/drivers/serial/mpsc.h
@@ -13,6 +13,11 @@
#define __MPSC_H__
#include <linux/config.h>
+
+#if defined(CONFIG_SERIAL_MPSC_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
+#define SUPPORT_SYSRQ
+#endif
+
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/tty.h>
@@ -31,10 +36,6 @@
#include <asm/io.h>
#include <asm/irq.h>
-#if defined(CONFIG_SERIAL_MPSC_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
-#define SUPPORT_SYSRQ
-#endif
-
#define MPSC_NUM_CTLRS 2
/*
OpenPOWER on IntegriCloud