diff options
Diffstat (limited to 'drivers/acpi/events/evxfevnt.c')
-rw-r--r-- | drivers/acpi/events/evxfevnt.c | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/drivers/acpi/events/evxfevnt.c b/drivers/acpi/events/evxfevnt.c index c1b898928256..90eb7939e986 100644 --- a/drivers/acpi/events/evxfevnt.c +++ b/drivers/acpi/events/evxfevnt.c | |||
@@ -5,7 +5,7 @@ | |||
5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
@@ -70,8 +70,7 @@ acpi_status acpi_enable(void) | |||
70 | /* Make sure we have the FADT */ | 70 | /* Make sure we have the FADT */ |
71 | 71 | ||
72 | if (!acpi_gbl_FADT) { | 72 | if (!acpi_gbl_FADT) { |
73 | ACPI_DEBUG_PRINT((ACPI_DB_WARN, | 73 | ACPI_REPORT_WARNING(("No FADT information present!\n")); |
74 | "No FADT information present!\n")); | ||
75 | return_ACPI_STATUS(AE_NO_ACPI_TABLES); | 74 | return_ACPI_STATUS(AE_NO_ACPI_TABLES); |
76 | } | 75 | } |
77 | 76 | ||
@@ -83,7 +82,7 @@ acpi_status acpi_enable(void) | |||
83 | 82 | ||
84 | status = acpi_hw_set_mode(ACPI_SYS_MODE_ACPI); | 83 | status = acpi_hw_set_mode(ACPI_SYS_MODE_ACPI); |
85 | if (ACPI_FAILURE(status)) { | 84 | if (ACPI_FAILURE(status)) { |
86 | ACPI_REPORT_ERROR(("Could not transition to ACPI mode.\n")); | 85 | ACPI_REPORT_ERROR(("Could not transition to ACPI mode\n")); |
87 | return_ACPI_STATUS(status); | 86 | return_ACPI_STATUS(status); |
88 | } | 87 | } |
89 | 88 | ||
@@ -113,8 +112,7 @@ acpi_status acpi_disable(void) | |||
113 | ACPI_FUNCTION_TRACE("acpi_disable"); | 112 | ACPI_FUNCTION_TRACE("acpi_disable"); |
114 | 113 | ||
115 | if (!acpi_gbl_FADT) { | 114 | if (!acpi_gbl_FADT) { |
116 | ACPI_DEBUG_PRINT((ACPI_DB_WARN, | 115 | ACPI_REPORT_WARNING(("No FADT information present!\n")); |
117 | "No FADT information present!\n")); | ||
118 | return_ACPI_STATUS(AE_NO_ACPI_TABLES); | 116 | return_ACPI_STATUS(AE_NO_ACPI_TABLES); |
119 | } | 117 | } |
120 | 118 | ||
@@ -127,8 +125,7 @@ acpi_status acpi_disable(void) | |||
127 | status = acpi_hw_set_mode(ACPI_SYS_MODE_LEGACY); | 125 | status = acpi_hw_set_mode(ACPI_SYS_MODE_LEGACY); |
128 | 126 | ||
129 | if (ACPI_FAILURE(status)) { | 127 | if (ACPI_FAILURE(status)) { |
130 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 128 | ACPI_REPORT_ERROR(("Could not exit ACPI mode to legacy mode")); |
131 | "Could not exit ACPI mode to legacy mode")); | ||
132 | return_ACPI_STATUS(status); | 129 | return_ACPI_STATUS(status); |
133 | } | 130 | } |
134 | 131 | ||
@@ -185,9 +182,8 @@ acpi_status acpi_enable_event(u32 event, u32 flags) | |||
185 | } | 182 | } |
186 | 183 | ||
187 | if (value != 1) { | 184 | if (value != 1) { |
188 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 185 | ACPI_REPORT_ERROR(("Could not enable %s event\n", |
189 | "Could not enable %s event\n", | 186 | acpi_ut_get_event_name(event))); |
190 | acpi_ut_get_event_name(event))); | ||
191 | return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE); | 187 | return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE); |
192 | } | 188 | } |
193 | 189 | ||
@@ -384,9 +380,8 @@ acpi_status acpi_disable_event(u32 event, u32 flags) | |||
384 | } | 380 | } |
385 | 381 | ||
386 | if (value != 0) { | 382 | if (value != 0) { |
387 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 383 | ACPI_REPORT_ERROR(("Could not disable %s events\n", |
388 | "Could not disable %s events\n", | 384 | acpi_ut_get_event_name(event))); |
389 | acpi_ut_get_event_name(event))); | ||
390 | return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE); | 385 | return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE); |
391 | } | 386 | } |
392 | 387 | ||