]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Sep 2018 14:07:22 +0000 (16:07 +0200)
commit4bb1ce2350a598502b23088b169e16b43d4bc639
tree9dddf8e6fb37011ef982e7d9ed481bf1759165aa
parent8baf9061c80de342134cdbd4a054bb5a7972631a
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