[acpica] Get root resource via global rather than ddk API.
Change-Id: I43a05b7d5a3c3ccb4d353f0fbe21707debc1a7ef
diff --git a/source/components/hardware/hwsleep.c b/source/components/hardware/hwsleep.c
index e1a719b..abd57fc 100644
--- a/source/components/hardware/hwsleep.c
+++ b/source/components/hardware/hwsleep.c
@@ -135,13 +135,13 @@
#if defined(__Fuchsia__) && !defined(_KERNEL)
if (SleepState != 5) {
- extern zx_handle_t get_root_resource(void);
+ extern zx_handle_t acpi_root_resource;
zx_system_powerctl_arg_t arg;
arg.acpi_transition_s_state.target_s_state = SleepState;
arg.acpi_transition_s_state.sleep_type_a = AcpiGbl_SleepTypeA;
arg.acpi_transition_s_state.sleep_type_b = AcpiGbl_SleepTypeB;
- zx_status_t zx_status = zx_system_powerctl(get_root_resource(),
+ zx_status_t zx_status = zx_system_powerctl(acpi_root_resource,
ZX_SYSTEM_POWERCTL_ACPI_TRANSITION_S_STATE, &arg);
if (zx_status == ZX_OK) {
Status = AE_OK;