Skip to content

Commit

Permalink
X86 platform driver: Fix section mismatch in wmi.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Renninger authored and Matthew Garrett committed Aug 3, 2010
1 parent a420e46 commit 925b108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/platform/x86/wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 925b108

Please sign in to comment.