diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-05-19 22:11:09 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-24 13:06:09 -0700 |
commit | 7798edeebc8101b1e8b1d7fb9eee3710f0877cbc (patch) | |
tree | c32194875d5579ce6fc054d1ea321b3c47bb7e1a /kernel/gcov | |
parent | 357d56151976a78d90dc3dfac01777de0ef05212 (diff) | |
download | op-kernel-dev-7798edeebc8101b1e8b1d7fb9eee3710f0877cbc.zip op-kernel-dev-7798edeebc8101b1e8b1d7fb9eee3710f0877cbc.tar.gz |
tty: serial/8250: remove console dependency for mediatek
If the mediatek serial port driver is built-in, but serial
console is disabled in Kconfig (e.g. when the serial driver
itself is a loadable module), we get this build error:
drivers/built-in.o: In function `early_mtk8250_setup':
undefined reference to `early_serial8250_setup'
To avoid that problem, this patch encloses the early_mtk8250_setup
function in #ifdef CONFIG_SERIAL_8250_CONSOLE, the same symbol
that guards the early_serial8250_setup function.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Eddie Huang <eddie.huang@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/gcov')
0 files changed, 0 insertions, 0 deletions