ACPI: fix a section mismatch
authorZhang Rui <rui.zhang@intel.com>
Wed, 8 Dec 2010 02:40:36 +0000 (10:40 +0800)
committerLen Brown <len.brown@intel.com>
Sat, 11 Dec 2010 07:01:47 +0000 (02:01 -0500)
WARNING: drivers/acpi/acpi.o(.text+0xeda): Section mismatch in reference from the function acpi_os_initialize1() to the function .init.text:set_osi_linux()

The function acpi_os_initialize1() references
the function __init set_osi_linux().

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/osl.c

index 966feddf6b1ba29457fde294223018ad23666e39..f7227e990b0f1694bcf00e13b6c09ba6bd263d44 100644 (file)
@@ -1530,7 +1530,7 @@ acpi_status __init acpi_os_initialize(void)
        return AE_OK;
 }
 
-acpi_status acpi_os_initialize1(void)
+acpi_status __init acpi_os_initialize1(void)
 {
        kacpid_wq = create_workqueue("kacpid");
        kacpi_notify_wq = create_workqueue("kacpi_notify");