Skip to content

Commit 1fa5208

Browse files
Michal Simekgregkh
authored andcommitted
serial: uartps: console_setup() can't be placed to init section
[ Upstream commit 4bb1ce2 ] 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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent edbcdaf commit 1fa5208

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/xilinx_uartps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@ static void cdns_uart_console_write(struct console *co, const char *s,
12701270
*
12711271
* Return: 0 on success, negative errno otherwise.
12721272
*/
1273-
static int __init cdns_uart_console_setup(struct console *co, char *options)
1273+
static int cdns_uart_console_setup(struct console *co, char *options)
12741274
{
12751275
struct uart_port *port = &cdns_uart_port[co->index];
12761276
int baud = 9600;

0 commit comments

Comments
 (0)