[PATCH 5.11 230/254] ACPI: scan: Rearrange memory allocation in acpi_device_add()