Lines 149-155
acpi_install_fixed_event_handler (
Link Here
|
149 |
acpi_gbl_fixed_event_handlers[event].handler = handler; |
149 |
acpi_gbl_fixed_event_handlers[event].handler = handler; |
150 |
acpi_gbl_fixed_event_handlers[event].context = context; |
150 |
acpi_gbl_fixed_event_handlers[event].context = context; |
151 |
|
151 |
|
152 |
status = acpi_enable_event (event, 0); |
152 |
status = acpi_clear_event (event); |
|
|
153 |
if (ACPI_SUCCESS(status)) |
154 |
status = acpi_enable_event (event, 0); |
153 |
if (ACPI_FAILURE (status)) { |
155 |
if (ACPI_FAILURE (status)) { |
154 |
ACPI_DEBUG_PRINT ((ACPI_DB_WARN, "Could not enable fixed event.\n")); |
156 |
ACPI_DEBUG_PRINT ((ACPI_DB_WARN, "Could not enable fixed event.\n")); |
155 |
|
157 |
|