提交 0a09ae98 编写于 作者: D Darren Hart 提交者: Greg Kroah-Hartman

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: NDarren Hart <dvhart@linux.intel.com>
Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 e06922aa
......@@ -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",
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册