fujitsu-laptop: fix section mismatch warning
authorRandy Dunlap <[email protected]>
Wed, 29 Oct 2008 21:13:20 +0000 (14:13 -0700)
committerLen Brown <[email protected]>
Fri, 7 Nov 2008 02:42:07 +0000 (21:42 -0500)
Could fix a bug in a hotplug add scenario.

WARNING: drivers/misc/fujitsu-laptop.o(.text+0xbde): Section mismatch in reference from the function acpi_fujitsu_add() to the variable .init.data:fujitsu_dmi_table
The function acpi_fujitsu_add() references
the variable __initdata fujitsu_dmi_table.
This is often because acpi_fujitsu_add lacks a __initdata
annotation or the annotation of fujitsu_dmi_table is wrong.

Signed-off-by: Randy Dunlap <[email protected]>
Acked-by: Jonathan Woithe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Len Brown <[email protected]>
drivers/misc/fujitsu-laptop.c

index d2cf0bfe31638f4de679f47a73c13097d527f3d4..9124fcdc4d09f2d9e09f51614114f989ed2328ba 100644 (file)
@@ -473,7 +473,7 @@ static int dmi_check_cb_p8010(const struct dmi_system_id *id)
        return 0;
 }
 
-static struct dmi_system_id __initdata fujitsu_dmi_table[] = {
+static struct dmi_system_id fujitsu_dmi_table[] = {
        {
         .ident = "Fujitsu Siemens S6410",
         .matches = {