Commit 925b108918c9a2ac58b4fd0994f4a9e63e11521c

Authored by Thomas Renninger
Committed by Matthew Garrett
1 parent a420e46412

X86 platform driver: Fix section mismatch in wmi.c

The .add function must not be declared __init.

Signed-off-by: Thomas Renninger <trenn@suse.de>

CC: Alexey Starikovskiy <astarikovskiy@suse.de>
CC: Len Brown <lenb@kernel.org>
CC: linux-kernel@vger.kernel.org
CC: linux-acpi@vger.kernel.org
CC: platform-driver-x86@vger.kernel.org
Signed-off-by: Matthew Garrett <mjg@redhat.com>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

drivers/platform/x86/wmi.c
... ... @@ -810,7 +810,7 @@
810 810 /*
811 811 * Parse the _WDG method for the GUID data blocks
812 812 */
813   -static __init acpi_status parse_wdg(acpi_handle handle)
  813 +static acpi_status parse_wdg(acpi_handle handle)
814 814 {
815 815 struct acpi_buffer out = {ACPI_ALLOCATE_BUFFER, NULL};
816 816 union acpi_object *obj;
... ... @@ -959,7 +959,7 @@
959 959 return 0;
960 960 }
961 961  
962   -static int __init acpi_wmi_add(struct acpi_device *device)
  962 +static int acpi_wmi_add(struct acpi_device *device)
963 963 {
964 964 acpi_status status;
965 965 int result = 0;