diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-08-06 18:20:05 -0400 |
---|---|---|
committer | Live-CD User <linux@linux.site> | 2009-09-19 16:13:09 -0400 |
commit | 0271edd4b1b16f255162029359bb69c1ee4d9c3b (patch) | |
tree | 73987be86c5a38e77f092b494ae3c4590c6af7bb /drivers/serial | |
parent | a4304f2d5a3823deea894026ec95e43b33912357 (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>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: stable <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/bfin_5xx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c index b4a7650af696..4fff4e524034 100644 --- a/drivers/serial/bfin_5xx.c +++ b/drivers/serial/bfin_5xx.c | |||
@@ -42,6 +42,10 @@ | |||
42 | # undef CONFIG_EARLY_PRINTK | 42 | # undef CONFIG_EARLY_PRINTK |
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | #ifdef CONFIG_SERIAL_BFIN_MODULE | ||
46 | # undef CONFIG_EARLY_PRINTK | ||
47 | #endif | ||
48 | |||
45 | /* UART name and device definitions */ | 49 | /* UART name and device definitions */ |
46 | #define BFIN_SERIAL_NAME "ttyBF" | 50 | #define BFIN_SERIAL_NAME "ttyBF" |
47 | #define BFIN_SERIAL_MAJOR 204 | 51 | #define BFIN_SERIAL_MAJOR 204 |