mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 01:49:36 +00:00
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>
This commit is contained in:
parent
a4304f2d5a
commit
0271edd4b1
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue