From: Mike Frysinger Date: Mon, 22 Jun 2009 17:41:47 +0000 (+0100) Subject: serial: bfin_5xx: fix building as module when early printk is enabled X-Git-Tag: 2.1b_release~12161 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=607c268ef9a4675287e77f732071e426e62c2d86;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git 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 Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c index d7fcca1..b4a7650 100644 --- a/drivers/serial/bfin_5xx.c +++ b/drivers/serial/bfin_5xx.c @@ -38,6 +38,10 @@ #include #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