aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/events/evevent.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/events/evevent.c')
-rw-r--r--drivers/acpi/events/evevent.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/acpi/events/evevent.c b/drivers/acpi/events/evevent.c
index c56c5c6ea77b..6ddf938290f1 100644
--- a/drivers/acpi/events/evevent.c
+++ b/drivers/acpi/events/evevent.c
@@ -72,8 +72,8 @@ acpi_status acpi_ev_initialize_events(void)
72 72
73 /* 73 /*
74 * Initialize the Fixed and General Purpose Events. This is done prior to 74 * Initialize the Fixed and General Purpose Events. This is done prior to
75 * enabling SCIs to prevent interrupts from occurring before the handlers are 75 * enabling SCIs to prevent interrupts from occurring before the handlers
76 * installed. 76 * are installed.
77 */ 77 */
78 status = acpi_ev_fixed_event_initialize(); 78 status = acpi_ev_fixed_event_initialize();
79 if (ACPI_FAILURE(status)) { 79 if (ACPI_FAILURE(status)) {
@@ -192,8 +192,8 @@ static acpi_status acpi_ev_fixed_event_initialize(void)
192 acpi_status status; 192 acpi_status status;
193 193
194 /* 194 /*
195 * Initialize the structure that keeps track of fixed event handlers 195 * Initialize the structure that keeps track of fixed event handlers and
196 * and enable the fixed events. 196 * enable the fixed events.
197 */ 197 */
198 for (i = 0; i < ACPI_NUM_FIXED_EVENTS; i++) { 198 for (i = 0; i < ACPI_NUM_FIXED_EVENTS; i++) {
199 acpi_gbl_fixed_event_handlers[i].handler = NULL; 199 acpi_gbl_fixed_event_handlers[i].handler = NULL;
@@ -237,7 +237,7 @@ u32 acpi_ev_fixed_event_detect(void)
237 237
238 /* 238 /*
239 * Read the fixed feature status and enable registers, as all the cases 239 * Read the fixed feature status and enable registers, as all the cases
240 * depend on their values. Ignore errors here. 240 * depend on their values. Ignore errors here.
241 */ 241 */
242 (void)acpi_hw_register_read(ACPI_REGISTER_PM1_STATUS, &fixed_status); 242 (void)acpi_hw_register_read(ACPI_REGISTER_PM1_STATUS, &fixed_status);
243 (void)acpi_hw_register_read(ACPI_REGISTER_PM1_ENABLE, &fixed_enable); 243 (void)acpi_hw_register_read(ACPI_REGISTER_PM1_ENABLE, &fixed_enable);
@@ -291,8 +291,8 @@ static u32 acpi_ev_fixed_event_dispatch(u32 event)
291 status_register_id, 1); 291 status_register_id, 1);
292 292
293 /* 293 /*
294 * Make sure we've got a handler. If not, report an error. 294 * Make sure we've got a handler. If not, report an error. The event is
295 * The event is disabled to prevent further interrupts. 295 * disabled to prevent further interrupts.
296 */ 296 */
297 if (NULL == acpi_gbl_fixed_event_handlers[event].handler) { 297 if (NULL == acpi_gbl_fixed_event_handlers[event].handler) {
298 (void)acpi_set_register(acpi_gbl_fixed_event_info[event]. 298 (void)acpi_set_register(acpi_gbl_fixed_event_info[event].