Skip to content

Commit 925b108

Browse files
watologo1Matthew Garrett
authored andcommitted
X86 platform driver: Fix section mismatch in wmi.c
The .add function must not be declared __init. Signed-off-by: Thomas Renninger <[email protected]> CC: Alexey Starikovskiy <[email protected]> CC: Len Brown <[email protected]> CC: [email protected] CC: [email protected] CC: [email protected] Signed-off-by: Matthew Garrett <[email protected]>
1 parent a420e46 commit 925b108

File tree

1 file changed

+2
-2
lines changed
  • drivers/platform/x86

1 file changed

+2
-2
lines changed

drivers/platform/x86/wmi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ static bool guid_already_parsed(const char *guid_string)
810810
/*
811811
* Parse the _WDG method for the GUID data blocks
812812
*/
813-
static __init acpi_status parse_wdg(acpi_handle handle)
813+
static acpi_status parse_wdg(acpi_handle handle)
814814
{
815815
struct acpi_buffer out = {ACPI_ALLOCATE_BUFFER, NULL};
816816
union acpi_object *obj;
@@ -959,7 +959,7 @@ static int acpi_wmi_remove(struct acpi_device *device, int type)
959959
return 0;
960960
}
961961

962-
static int __init acpi_wmi_add(struct acpi_device *device)
962+
static int acpi_wmi_add(struct acpi_device *device)
963963
{
964964
acpi_status status;
965965
int result = 0;

0 commit comments

Comments
 (0)