]> rtime.felk.cvut.cz Git - zynq/linux.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)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 22 Feb 2019 13:54:25 +0000 (14:54 +0100)
commit401c12df37b7b1e312c513cce46f8c837db2c53a
tree6d630356f77e6a88c15a4f45ff927f75e681ab42
parent4b12606bfde10f81ea49d5ed85c81c1111d10e9f
serial: uartps: console_setup() can't be placed to init section

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>
drivers/tty/serial/xilinx_uartps.c