Skip to content

Commit 9b8fef6

Browse files
SiFiveHollandgregkh
authored andcommitted
serial: sifive: Fix sifive_serial_console_setup() section
This function is called indirectly from the platform driver probe function. Even if the driver is built in, it may be probed after free_initmem() due to deferral or unbinding/binding via sysfs. Thus the function cannot be marked as __init. Fixes: 45c054d ("tty: serial: add driver for the SiFive UART") Cc: stable <[email protected]> Signed-off-by: Samuel Holland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e29c3f8 commit 9b8fef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/sifive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ static void sifive_serial_console_write(struct console *co, const char *s,
811811
local_irq_restore(flags);
812812
}
813813

814-
static int __init sifive_serial_console_setup(struct console *co, char *options)
814+
static int sifive_serial_console_setup(struct console *co, char *options)
815815
{
816816
struct sifive_serial_port *ssp;
817817
int baud = SIFIVE_DEFAULT_BAUD_RATE;

0 commit comments

Comments
 (0)