diff options
| author | Paul Mackerras <paulus@samba.org> | 2006-02-06 18:43:36 -0500 |
|---|---|---|
| committer | Paul Mackerras <paulus@samba.org> | 2006-02-06 18:43:36 -0500 |
| commit | 6cb6524d90b6e5497e79a1474bdb2f26755d1c02 (patch) | |
| tree | fd475ac8f57a6bd39c976056324d1bc79d11b4c9 /drivers/acpi/namespace/nsxfeval.c | |
| parent | 837e9594fc3cb9a06bddd7ecf66151334a2e13d2 (diff) | |
| parent | 410c05427a69f53851637ccb85c2212131409fbd (diff) | |
Merge ../linux-2.6
Diffstat (limited to 'drivers/acpi/namespace/nsxfeval.c')
| -rw-r--r-- | drivers/acpi/namespace/nsxfeval.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/drivers/acpi/namespace/nsxfeval.c b/drivers/acpi/namespace/nsxfeval.c index c07b046659ff..a95f636dc35d 100644 --- a/drivers/acpi/namespace/nsxfeval.c +++ b/drivers/acpi/namespace/nsxfeval.c | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ******************************************************************************/ | 6 | ******************************************************************************/ |
| 7 | 7 | ||
| 8 | /* | 8 | /* |
| 9 | * Copyright (C) 2000 - 2005, R. Byron Moore | 9 | * Copyright (C) 2000 - 2006, R. Byron Moore |
| 10 | * All rights reserved. | 10 | * All rights reserved. |
| 11 | * | 11 | * |
| 12 | * Redistribution and use in source and binary forms, with or without | 12 | * Redistribution and use in source and binary forms, with or without |
| @@ -112,8 +112,7 @@ acpi_evaluate_object_typed(acpi_handle handle, | |||
| 112 | if (return_buffer->length == 0) { | 112 | if (return_buffer->length == 0) { |
| 113 | /* Error because caller specifically asked for a return value */ | 113 | /* Error because caller specifically asked for a return value */ |
| 114 | 114 | ||
| 115 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "No return value\n")); | 115 | ACPI_ERROR((AE_INFO, "No return value")); |
| 116 | |||
| 117 | return_ACPI_STATUS(AE_NULL_OBJECT); | 116 | return_ACPI_STATUS(AE_NULL_OBJECT); |
| 118 | } | 117 | } |
| 119 | 118 | ||
| @@ -125,11 +124,11 @@ acpi_evaluate_object_typed(acpi_handle handle, | |||
| 125 | 124 | ||
| 126 | /* Return object type does not match requested type */ | 125 | /* Return object type does not match requested type */ |
| 127 | 126 | ||
| 128 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 127 | ACPI_ERROR((AE_INFO, |
| 129 | "Incorrect return type [%s] requested [%s]\n", | 128 | "Incorrect return type [%s] requested [%s]", |
| 130 | acpi_ut_get_type_name(((union acpi_object *) | 129 | acpi_ut_get_type_name(((union acpi_object *)return_buffer-> |
| 131 | return_buffer->pointer)->type), | 130 | pointer)->type), |
| 132 | acpi_ut_get_type_name(return_type))); | 131 | acpi_ut_get_type_name(return_type))); |
| 133 | 132 | ||
| 134 | if (must_free) { | 133 | if (must_free) { |
| 135 | /* Caller used ACPI_ALLOCATE_BUFFER, free the return buffer */ | 134 | /* Caller used ACPI_ALLOCATE_BUFFER, free the return buffer */ |
| @@ -236,11 +235,11 @@ acpi_evaluate_object(acpi_handle handle, | |||
| 236 | * qualified names above, this is an error | 235 | * qualified names above, this is an error |
| 237 | */ | 236 | */ |
| 238 | if (!pathname) { | 237 | if (!pathname) { |
| 239 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 238 | ACPI_ERROR((AE_INFO, |
| 240 | "Both Handle and Pathname are NULL\n")); | 239 | "Both Handle and Pathname are NULL")); |
| 241 | } else { | 240 | } else { |
| 242 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 241 | ACPI_ERROR((AE_INFO, |
| 243 | "Handle is NULL and Pathname is relative\n")); | 242 | "Handle is NULL and Pathname is relative")); |
| 244 | } | 243 | } |
| 245 | 244 | ||
| 246 | status = AE_BAD_PARAMETER; | 245 | status = AE_BAD_PARAMETER; |
| @@ -399,7 +398,7 @@ acpi_walk_namespace(acpi_object_type type, | |||
| 399 | 398 | ||
| 400 | /* Parameter validation */ | 399 | /* Parameter validation */ |
| 401 | 400 | ||
| 402 | if ((type > ACPI_TYPE_EXTERNAL_MAX) || (!max_depth) || (!user_function)) { | 401 | if ((type > ACPI_TYPE_LOCAL_MAX) || (!max_depth) || (!user_function)) { |
| 403 | return_ACPI_STATUS(AE_BAD_PARAMETER); | 402 | return_ACPI_STATUS(AE_BAD_PARAMETER); |
| 404 | } | 403 | } |
| 405 | 404 | ||
| @@ -473,8 +472,8 @@ acpi_ns_get_device_callback(acpi_handle obj_handle, | |||
| 473 | return (AE_CTRL_DEPTH); | 472 | return (AE_CTRL_DEPTH); |
| 474 | } | 473 | } |
| 475 | 474 | ||
| 476 | if (!(flags & 0x01)) { | 475 | if (!(flags & ACPI_STA_DEVICE_PRESENT)) { |
| 477 | /* Don't return at the device or children of the device if not there */ | 476 | /* Don't examine children of the device if not present */ |
| 478 | 477 | ||
| 479 | return (AE_CTRL_DEPTH); | 478 | return (AE_CTRL_DEPTH); |
| 480 | } | 479 | } |
