Commit 607c268ef9a4675287e77f732071e426e62c2d86

Authored by Mike Frysinger
Committed by Linus Torvalds
1 parent 9c529a3d76

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>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

drivers/serial/bfin_5xx.c
... ... @@ -38,6 +38,10 @@
38 38 #include <asm/cacheflush.h>
39 39 #endif
40 40  
  41 +#ifdef CONFIG_SERIAL_BFIN_MODULE
  42 +# undef CONFIG_EARLY_PRINTK
  43 +#endif
  44 +
41 45 /* UART name and device definitions */
42 46 #define BFIN_SERIAL_NAME "ttyBF"
43 47 #define BFIN_SERIAL_MAJOR 204