提交 ae73975f 编写于 作者: M Masahiro Yamada 提交者: Greg Kroah-Hartman

serial: 8250_mtk: drop !defined(MODULE) conditional

The !defined(MODULE) conditional has been added to the
OF_EARLYCON_DECLARE() define.

This commit partially reverts commit 3f5921a6 ("serial:
8250/mediatek: fix building with SERIAL_8250=m").
Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: NMatthias Brugger <matthias.bgg@gmail.com>
Acked-by: NArnd Bergmann <arnd@arndb.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 68b78059
......@@ -301,7 +301,7 @@ static struct platform_driver mtk8250_platform_driver = {
};
module_platform_driver(mtk8250_platform_driver);
#if defined(CONFIG_SERIAL_8250_CONSOLE) && !defined(MODULE)
#ifdef CONFIG_SERIAL_8250_CONSOLE
static int __init early_mtk8250_setup(struct earlycon_device *device,
const char *options)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册