Skip to content

Commit fd9caef

Browse files
Aaron Lurafaeljw
authored andcommitted
ACPI / scan: fix fixed event handler return value
The fixed event handler should return a value that is either 0 or 1 meanning if the event is handled or not, instead of an acpi_status to mean if the handler runs well or not. Suggested-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Aaron Lu <aaron.lu@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 06e5801 commit fd9caef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/acpi/scan.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,10 +1062,10 @@ static void acpi_device_notify_fixed(void *data)
10621062
acpi_device_notify(NULL, ACPI_FIXED_HARDWARE_EVENT, device);
10631063
}
10641064

1065-
static acpi_status acpi_device_fixed_event(void *data)
1065+
static u32 acpi_device_fixed_event(void *data)
10661066
{
10671067
acpi_os_execute(OSL_NOTIFY_HANDLER, acpi_device_notify_fixed, data);
1068-
return AE_OK;
1068+
return ACPI_INTERRUPT_HANDLED;
10691069
}
10701070

10711071
static int acpi_device_install_notify_handler(struct acpi_device *device)

0 commit comments

Comments
 (0)