]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
serial: sprd: add console_initcall in sprd's uart driver
authorChunyan Zhang <chunyan.zhang@unisoc.com>
Mon, 26 Aug 2019 07:29:28 +0000 (15:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Sep 2019 10:43:55 +0000 (12:43 +0200)
commite85c9d6786e5afc93c3a29582cf42ee4b00b1e08
tree935ba050166c6bd7288eabe57fc4eeffc1e523a6
parent99038fe75afaef59e20417d593a9d618d3ea14e6
serial: sprd: add console_initcall in sprd's uart driver

Use console_initcall to save the console index we selected on the
command line to sprd_console before probe finished. Thus we can
make different processes to the uart devices during initialization
according to whether it is used for console.

Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Signed-off-by: Chunyan Zhang <zhang.lyra@gmail.com>
Reviewed-by: Baolin Wang <baolin.wang@linaro.org>
Tested-by: Baolin Wang <baolin.wang@linaro.org>
Link: https://lore.kernel.org/r/20190826072929.7696-3-zhang.lyra@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sprd_serial.c