Commit f1b49d5a authored by Chunyan Zhang's avatar Chunyan Zhang Committed by Greg Kroah-Hartman

serial: sprd: remove __init from sprd_console_setup

The function sprd_console_setup() would be called from .probe() which can
be called after freeing __init functions, for example the .probe() would
return -EPROBE_DEFER since it depends on clock modules.
Signed-off-by: default avatarChunyan Zhang <chunyan.zhang@unisoc.com>
Reviewed-by: default avatarBaolin Wang <baolin.wang7@gmail.com>
Link: https://lore.kernel.org/r/20200316101930.9962-3-zhang.lyra@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 72cc06be
...@@ -1013,7 +1013,7 @@ static void sprd_console_write(struct console *co, const char *s, ...@@ -1013,7 +1013,7 @@ static void sprd_console_write(struct console *co, const char *s,
spin_unlock_irqrestore(&port->lock, flags); spin_unlock_irqrestore(&port->lock, flags);
} }
static int __init sprd_console_setup(struct console *co, char *options) static int sprd_console_setup(struct console *co, char *options)
{ {
struct sprd_uart_port *sprd_uart_port; struct sprd_uart_port *sprd_uart_port;
int baud = 115200; int baud = 115200;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment