From: Darren Hart Date: Mon, 29 Jul 2013 16:58:14 +0000 (-0700) Subject: serial: pch_uart: Remove __initdata annotation from dmi_table X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0a09ae98eade956bbc681cb905584effe4a1ed95;p=openwrt%2Fstaging%2Fblogic.git serial: pch_uart: Remove __initdata annotation from dmi_table The dmi_table is best accessed from the probe function, which is not an __init function. Drop the __initdata annotation from the dmi_table to avoid the section mismatch compiler warnings: WARNING: drivers/tty/serial/pch_uart.o(.text+0x4871): Section mismatch in reference from the function pch_uart_init_port() to the variable .init.data:pch_uart_dmi_table Signed-off-by: Darren Hart Reported-by: kbuild test robot Cc: Jiri Slaby Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c index 271cc733573c..bc0aa0881d0f 100644 --- a/drivers/tty/serial/pch_uart.c +++ b/drivers/tty/serial/pch_uart.c @@ -373,7 +373,7 @@ static const struct file_operations port_regs_ops = { }; #endif /* CONFIG_DEBUG_FS */ -static struct dmi_system_id __initdata pch_uart_dmi_table[] = { +static struct dmi_system_id pch_uart_dmi_table[] = { { .ident = "CM-iTC", {