serial: sprd: remove __init from sprd_console_setup
authorChunyan Zhang <chunyan.zhang@unisoc.com>
Mon, 16 Mar 2020 10:19:29 +0000 (18:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Mar 2020 14:20:41 +0000 (15:20 +0100)
commitf1b49d5a07131a723a7fcf83310c060dac116965
tree5a569c8f2634ffd93dd5b7c9949df567f6827e22
parent72cc06be190a206abc3fcab236c6eddd5ebe0767
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: Chunyan Zhang <chunyan.zhang@unisoc.com>
Reviewed-by: Baolin Wang <baolin.wang7@gmail.com>
Link: https://lore.kernel.org/r/20200316101930.9962-3-zhang.lyra@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sprd_serial.c