diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-08-06 15:20:05 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-10-05 09:31:29 -0700 |
commit | 499c53541b860b20e00ab2c85b50cdb813c3606c (patch) | |
tree | 65f060420c8f8b1bf7e2ce93cfbf9e5d139ecac1 /drivers/serial/bfin_5xx.c | |
parent | fc5c8874e71764e58f4aaa11223c9cf62d9028ec (diff) |
serial: bfin_5xx: fix building as module when early printk is enabled
commit 0271edd4b1b16f255162029359bb69c1ee4d9c3b upstream.
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/serial/bfin_5xx.c')
-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 @@ # undef CONFIG_EARLY_PRINTK #endif +#ifdef CONFIG_SERIAL_BFIN_MODULE +# undef CONFIG_EARLY_PRINTK +#endif + /* UART name and device definitions */ #define BFIN_SERIAL_NAME "ttyBF" #define BFIN_SERIAL_MAJOR 204 |