aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorThomas Renninger <trenn@suse.de>2010-07-16 07:11:36 -0400
committerMatthew Garrett <mjg@redhat.com>2010-08-03 09:49:07 -0400
commit925b108918c9a2ac58b4fd0994f4a9e63e11521c (patch)
treeb0016b227a0471518ea2645876e38771c4e77e35 /drivers/platform
parenta420e46412ad9d33c7174cd4311b91728122e2c4 (diff)
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>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/wmi.c4
1 files changed, 2 insertions, 2 deletions
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)
810/* 810/*
811 * Parse the _WDG method for the GUID data blocks 811 * Parse the _WDG method for the GUID data blocks
812 */ 812 */
813static __init acpi_status parse_wdg(acpi_handle handle) 813static acpi_status parse_wdg(acpi_handle handle)
814{ 814{
815 struct acpi_buffer out = {ACPI_ALLOCATE_BUFFER, NULL}; 815 struct acpi_buffer out = {ACPI_ALLOCATE_BUFFER, NULL};
816 union acpi_object *obj; 816 union acpi_object *obj;
@@ -959,7 +959,7 @@ static int acpi_wmi_remove(struct acpi_device *device, int type)
959 return 0; 959 return 0;
960} 960}
961 961
962static int __init acpi_wmi_add(struct acpi_device *device) 962static int acpi_wmi_add(struct acpi_device *device)
963{ 963{
964 acpi_status status; 964 acpi_status status;
965 int result = 0; 965 int result = 0;