From 4f6e98e74f76be16ea3db9f94bbc2dc3bc776fe6 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Wed, 1 Jul 2020 19:29:36 +0800 Subject: [PATCH] serial: 8250: Call serial8250_init() early when CONFIG_ROCKCHIP_THUNDER_BOOT=y Before dw8250_platform_driver probe. Change-Id: I46382f1d563ed75897e964c625b91b6f8be0481a Signed-off-by: Tao Huang --- drivers/tty/serial/8250/8250_core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c index b0fa2207eedf..346405368b1a 100644 --- a/drivers/tty/serial/8250/8250_core.c +++ b/drivers/tty/serial/8250/8250_core.c @@ -1211,7 +1211,11 @@ static void __exit serial8250_exit(void) #endif } +#ifdef CONFIG_ROCKCHIP_THUNDER_BOOT +rootfs_initcall(serial8250_init); +#else module_init(serial8250_init); +#endif module_exit(serial8250_exit); MODULE_LICENSE("GPL");