aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial/bfin_5xx.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-06-22 13:41:47 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-22 14:32:23 -0400
commit607c268ef9a4675287e77f732071e426e62c2d86 (patch)
treea24ff05d2e61153a5122da85eabb3c6fc6007113 /drivers/serial/bfin_5xx.c
parent9c529a3d76dffae943868ebad07b042d15764712 (diff)
serial: bfin_5xx: fix building as module when early printk is enabled
Since early printk only makes sense/works when the serial driver is built into the kernel, disable the option for this driver when it is going to be built as a module. Otherwise we get build failures due to the ifdef handling. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/serial/bfin_5xx.c')
-rw-r--r--drivers/serial/bfin_5xx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c
index d7fcca18223b..b4a7650af696 100644
--- a/drivers/serial/bfin_5xx.c
+++ b/drivers/serial/bfin_5xx.c
@@ -38,6 +38,10 @@
38#include <asm/cacheflush.h> 38#include <asm/cacheflush.h>
39#endif 39#endif
40 40
41#ifdef CONFIG_SERIAL_BFIN_MODULE
42# undef CONFIG_EARLY_PRINTK
43#endif
44
41/* UART name and device definitions */ 45/* UART name and device definitions */
42#define BFIN_SERIAL_NAME "ttyBF" 46#define BFIN_SERIAL_NAME "ttyBF"
43#define BFIN_SERIAL_MAJOR 204 47#define BFIN_SERIAL_MAJOR 204