diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-01-13 17:33:59 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-07 02:04:51 -0500 |
commit | d56edd7ed0ed46a8043ee3040ededbd190818ccf (patch) | |
tree | 01377d5950f162c0c7023b2c7de98bf457150f2a | |
parent | e9036d0662360cd4c79578565ce422ed5872f301 (diff) |
8250: uniphier: allow modular build with 8250 console
The recently added uniphier 8250 port driver supports early console
probing, and it supports being built as a module, but the combination
of the two fails to link:
ERROR: "early_serial8250_setup" [drivers/tty/serial/8250/8250_uniphier.ko] undefined!
Given that earlycon support in a loadable module makes no sense,
making that code conditional on 'MODULE' is a correct solution.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: b8d20e06eaad ("serial: 8250_uniphier: add earlycon support")
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/serial/8250/8250_uniphier.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_uniphier.c b/drivers/tty/serial/8250/8250_uniphier.c index bab6b3ae2540..1b7bd26555b7 100644 --- a/drivers/tty/serial/8250/8250_uniphier.c +++ b/drivers/tty/serial/8250/8250_uniphier.c | |||
@@ -35,7 +35,7 @@ struct uniphier8250_priv { | |||
35 | spinlock_t atomic_write_lock; | 35 | spinlock_t atomic_write_lock; |
36 | }; | 36 | }; |
37 | 37 | ||
38 | #ifdef CONFIG_SERIAL_8250_CONSOLE | 38 | #if defined(CONFIG_SERIAL_8250_CONSOLE) && !defined(MODULE) |
39 | static int __init uniphier_early_console_setup(struct earlycon_device *device, | 39 | static int __init uniphier_early_console_setup(struct earlycon_device *device, |
40 | const char *options) | 40 | const char *options) |
41 | { | 41 | { |