From: Thomas Renninger Date: Fri, 16 Jul 2010 11:11:36 +0000 (+0200) Subject: X86 platform driver: Fix section mismatch in wmi.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=925b108918c9a2ac58b4fd0994f4a9e63e11521c;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git X86 platform driver: Fix section mismatch in wmi.c The .add function must not be declared __init. Signed-off-by: Thomas Renninger CC: Alexey Starikovskiy CC: Len Brown CC: linux-kernel@vger.kernel.org CC: linux-acpi@vger.kernel.org CC: platform-driver-x86@vger.kernel.org Signed-off-by: Matthew Garrett --- diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index 6c15720be6a4..b2978a04317f 100644 --- a/drivers/platform/x86/wmi.c +++ b/drivers/platform/x86/wmi.c @@ -810,7 +810,7 @@ static bool guid_already_parsed(const char *guid_string) /* * Parse the _WDG method for the GUID data blocks */ -static __init acpi_status parse_wdg(acpi_handle handle) +static acpi_status parse_wdg(acpi_handle handle) { struct acpi_buffer out = {ACPI_ALLOCATE_BUFFER, NULL}; union acpi_object *obj; @@ -959,7 +959,7 @@ static int acpi_wmi_remove(struct acpi_device *device, int type) return 0; } -static int __init acpi_wmi_add(struct acpi_device *device) +static int acpi_wmi_add(struct acpi_device *device) { acpi_status status; int result = 0;