Skip to contentSkip to conversation

ACPI: acpi_osi_setup uses the new interfaces

RFC PATCH In review Lin Ming 1 participant 1 message Jul 28, 2010

Subsystems (2)
lore
Share & tools
lore

Lin Ming

author
#0 lore raw

RFC PATCH 4/4 ACPI: acpi_osi_setup uses the new interfaces

acpi_os_validate_interface was removed from ACPICA core code. Replace it with acpi_osi_handler.

acpi_osi_setup can't call acpi_install/remove_interface because ACPICA is not initialized yet at this early time.
So we just save the osi string in acpi_osi_setup and will handle it later in a new function acpi_osi_setup_late.

---
 drivers/acpi/acpica/utosi.c |   26 -------------
 drivers/acpi/osl.c          |   86 ++++++++++++++++++++++---------------------
 include/acpi/acpiosxf.h     |    3 -
 3 files changed, 44 insertions(+), 71 deletions(-)
drivers/acpi/acpica/utosi.c +0 -26
index 85bdcd7..fc7f2bd 100644
@@ -362,29 +362,3 @@ acpi_status acpi_ut_osi_implementation(struct acpi_walk_state *walk_state)
 	walk_state->return_desc = return_desc;
 	return_ACPI_STATUS(AE_OK);
 }
-
-/*******************************************************************************
- *
- * FUNCTION:    acpi_osi_invalidate
- *
- * PARAMETERS:  interface_string
- *
- * RETURN:      Status
- *
- * DESCRIPTION: invalidate string in pre-defiend _OSI string list
- *
- ******************************************************************************/
-
-acpi_status acpi_osi_invalidate(char *interface)
-{
-	int i;
-
-	for (i = 0; i < ACPI_ARRAY_LENGTH(acpi_default_supported_interfaces); i++) {
-		if (!ACPI_STRCMP(interface, acpi_default_supported_interfaces[i].name)) {
-			*acpi_default_supported_interfaces[i].name = '\0';
-			return AE_OK;
-		}
-	}
-	return AE_NOT_FOUND;
-}
-
drivers/acpi/osl.c +44 -42

128 lines not on this page · raw message

include/acpi/acpiosxf.h +0 -3
index 29bf945..17d4f61 100644
@@ -239,9 +239,6 @@ acpi_os_derive_pci_id(acpi_handle device,
 /*
  * Miscellaneous
  */
-acpi_status acpi_os_validate_interface(char *interface);
-acpi_status acpi_osi_invalidate(char* interface);
-
 acpi_status
 acpi_os_validate_address(u8 space_id, acpi_physical_address address,
 			 acpi_size length, char *name);