diff --git a/devices/src/acpi.rs b/devices/src/acpi.rs index 5cfcc121e..a0e90d563 100644 --- a/devices/src/acpi.rs +++ b/devices/src/acpi.rs @@ -104,7 +104,7 @@ impl BusDevice for AcpiGedDevice { #[cfg(feature = "acpi")] impl Aml for AcpiGedDevice { - fn to_aml_bytes(&self) -> Vec { + fn append_aml_bytes(&self, bytes: &mut Vec) { aml::Device::new( "_SB_.GED_".into(), vec![ @@ -165,7 +165,7 @@ impl Aml for AcpiGedDevice { ), ], ) - .to_aml_bytes() + .append_aml_bytes(bytes) } }