X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Facpi%2Fresources%2Frsutils.c;h=ee9ce13c053d76bc252fd8d4ee4a0a889528cd3f;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=01dea9b9441c8b0223f457c6071817229b6b7c54;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/acpi/resources/rsutils.c b/drivers/acpi/resources/rsutils.c index 01dea9b94..ee9ce13c0 100644 --- a/drivers/acpi/resources/rsutils.c +++ b/drivers/acpi/resources/rsutils.c @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -175,7 +175,7 @@ acpi_rs_get_crs_method_data ( * and the contents of the callers buffer is undefined. * ******************************************************************************/ - +#ifdef ACPI_FUTURE_USAGE acpi_status acpi_rs_get_prs_method_data ( acpi_handle handle, @@ -210,6 +210,7 @@ acpi_rs_get_prs_method_data ( acpi_ut_remove_reference (obj_desc); return_ACPI_STATUS (status); } +#endif /* ACPI_FUTURE_USAGE */ /******************************************************************************* @@ -338,6 +339,13 @@ acpi_rs_set_srs_method_data ( * Execute the method, no return value */ status = acpi_ns_evaluate_relative ("_SRS", &info); + if (ACPI_SUCCESS (status)) { + /* Delete any return object (especially if implicit_return is enabled) */ + + if (info.return_object) { + acpi_ut_remove_reference (info.return_object); + } + } /* * Clean up and return the status from acpi_ns_evaluate_relative