8250: uniphier: allow modular build with 8250 console
commitd56edd7ed0ed46a8043ee3040ededbd190818ccf
authorArnd Bergmann <arnd@arndb.de>
Wed, 13 Jan 2016 22:33:59 +0000 (13 23:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 07:04:51 +0000 (6 23:04 -0800)
tree01377d5950f162c0c7023b2c7de98bf457150f2a
parente9036d0662360cd4c79578565ce422ed5872f301
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>
drivers/tty/serial/8250/8250_uniphier.c