diff options
Diffstat (limited to 'drivers/acpi/acpica/evgpe.c')
-rw-r--r-- | drivers/acpi/acpica/evgpe.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/acpi/acpica/evgpe.c b/drivers/acpi/acpica/evgpe.c index f226eac314db..005c170d2448 100644 --- a/drivers/acpi/acpica/evgpe.c +++ b/drivers/acpi/acpica/evgpe.c | |||
@@ -137,7 +137,7 @@ acpi_ev_enable_gpe(struct acpi_gpe_event_info *gpe_event_info) | |||
137 | 137 | ||
138 | /******************************************************************************* | 138 | /******************************************************************************* |
139 | * | 139 | * |
140 | * FUNCTION: acpi_raw_enable_gpe | 140 | * FUNCTION: acpi_ev_add_gpe_reference |
141 | * | 141 | * |
142 | * PARAMETERS: gpe_event_info - GPE to enable | 142 | * PARAMETERS: gpe_event_info - GPE to enable |
143 | * | 143 | * |
@@ -148,10 +148,12 @@ acpi_ev_enable_gpe(struct acpi_gpe_event_info *gpe_event_info) | |||
148 | * | 148 | * |
149 | ******************************************************************************/ | 149 | ******************************************************************************/ |
150 | 150 | ||
151 | acpi_status acpi_raw_enable_gpe(struct acpi_gpe_event_info *gpe_event_info) | 151 | acpi_status acpi_ev_add_gpe_reference(struct acpi_gpe_event_info *gpe_event_info) |
152 | { | 152 | { |
153 | acpi_status status = AE_OK; | 153 | acpi_status status = AE_OK; |
154 | 154 | ||
155 | ACPI_FUNCTION_TRACE(ev_add_gpe_reference); | ||
156 | |||
155 | if (gpe_event_info->runtime_count == ACPI_UINT8_MAX) { | 157 | if (gpe_event_info->runtime_count == ACPI_UINT8_MAX) { |
156 | return_ACPI_STATUS(AE_LIMIT); | 158 | return_ACPI_STATUS(AE_LIMIT); |
157 | } | 159 | } |
@@ -173,7 +175,7 @@ acpi_status acpi_raw_enable_gpe(struct acpi_gpe_event_info *gpe_event_info) | |||
173 | 175 | ||
174 | /******************************************************************************* | 176 | /******************************************************************************* |
175 | * | 177 | * |
176 | * FUNCTION: acpi_raw_disable_gpe | 178 | * FUNCTION: acpi_ev_remove_gpe_reference |
177 | * | 179 | * |
178 | * PARAMETERS: gpe_event_info - GPE to disable | 180 | * PARAMETERS: gpe_event_info - GPE to disable |
179 | * | 181 | * |
@@ -184,10 +186,12 @@ acpi_status acpi_raw_enable_gpe(struct acpi_gpe_event_info *gpe_event_info) | |||
184 | * | 186 | * |
185 | ******************************************************************************/ | 187 | ******************************************************************************/ |
186 | 188 | ||
187 | acpi_status acpi_raw_disable_gpe(struct acpi_gpe_event_info *gpe_event_info) | 189 | acpi_status acpi_ev_remove_gpe_reference(struct acpi_gpe_event_info *gpe_event_info) |
188 | { | 190 | { |
189 | acpi_status status = AE_OK; | 191 | acpi_status status = AE_OK; |
190 | 192 | ||
193 | ACPI_FUNCTION_TRACE(ev_remove_gpe_reference); | ||
194 | |||
191 | if (!gpe_event_info->runtime_count) { | 195 | if (!gpe_event_info->runtime_count) { |
192 | return_ACPI_STATUS(AE_LIMIT); | 196 | return_ACPI_STATUS(AE_LIMIT); |
193 | } | 197 | } |
@@ -529,7 +533,7 @@ static void acpi_ev_asynch_enable_gpe(void *context) | |||
529 | * Enable this GPE, conditionally. This means that the GPE will only be | 533 | * Enable this GPE, conditionally. This means that the GPE will only be |
530 | * physically enabled if the enable_for_run bit is set in the event_info | 534 | * physically enabled if the enable_for_run bit is set in the event_info |
531 | */ | 535 | */ |
532 | (void)acpi_hw_low_set_gpe(gpe_event_info, ACPI_GPE_COND_ENABLE); | 536 | (void)acpi_hw_low_set_gpe(gpe_event_info, ACPI_GPE_CONDITIONAL_ENABLE); |
533 | 537 | ||
534 | return_VOID; | 538 | return_VOID; |
535 | } | 539 | } |