serial: 8250/uniphier: fix modular build
authorArnd Bergmann <arnd@arndb.de>
Wed, 17 Feb 2016 15:02:33 +0000 (16:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Mar 2016 00:11:14 +0000 (16:11 -0800)
commita2d3ea2f23993df70c9c3740a01be25e6af19a0b
tree6c7f14d4c02c75517121cb15e8bc4deb9a7b8c6d
parent49c56bfcb7c44ec67c4e2d3a54656335e62bf3b8
serial: 8250/uniphier: fix modular build

The newly added uniphier serial port driver fails to build as
a loadable module when the base 8250 driver is built-in and
its console support enabled:

ERROR: "early_serial8250_setup" [drivers/tty/serial/8250/8250_uniphier.ko] undefined!

This changes the driver to only provide the early console support
if it is built-in itself as well.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_uniphier.c