[PATCH 4.14 48/59] ACPI: scan: Rearrange memory allocation in acpi_device_add()