if (!addr || !length)
return;
---- /* Resources are never freed */
---- if (gas->space_id == ACPI_ADR_SPACE_SYSTEM_IO)
---- request_region(addr, length, desc);
---- else if (gas->space_id == ACPI_ADR_SPACE_SYSTEM_MEMORY)
---- request_mem_region(addr, length, desc);
++++ acpi_reserve_region(addr, length, gas->space_id, 0, desc);
}
--- static int __init acpi_reserve_resources(void)
+++ static void __init acpi_reserve_resources(void)
{
acpi_request_region(&acpi_gbl_FADT.xpm1a_event_block, acpi_gbl_FADT.pm1_event_length,
"ACPI PM1a_EVT_BLK");