Skip to content

Commit

Permalink
[PATCH] serial: mpsc driver has definition of SUPPORT_SYSRQ below inc…
Browse files Browse the repository at this point in the history
…lude 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>
  • Loading branch information
Mark A. Greer authored and Linus Torvalds committed Mar 25, 2006
1 parent a30ff2e commit 6261c8e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions drivers/serial/mpsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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

/*
Expand Down

0 comments on commit 6261c8e

Please sign in to comment.