]> git.ipfire.org Git - people/arne_f/kernel.git/commit
serial: uartps: console_setup() can't be placed to init section
authorMichal Simek <michal.simek@xilinx.com>
Mon, 3 Sep 2018 13:10:49 +0000 (15:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Apr 2019 07:07:52 +0000 (09:07 +0200)
commitc443251b65e26f396701e480c57e3c41f2afeae8
tree8d55d8cc9366090e2d69c80d69f8cad8d6bdd136
parentd1a623e772b5a52bc3fe6b062a2ce63efc259c44
serial: uartps: console_setup() can't be placed to init section

[ Upstream commit 4bb1ce2350a598502b23088b169e16b43d4bc639 ]

When console device is rebinded, console_setup() is called again.
But marking it as __init means that function will be clear after boot is
complete. If console device is binded again console_setup() is not found
and error "Unable to handle kernel paging request at virtual address"
is reported.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/xilinx_uartps.c