Commit 95722237 authored by Hanjun Guo's avatar Hanjun Guo Committed by Rafael J. Wysocki
Browse files

ACPI: sleep: Put the FACS table after using it



Put the FACS table after using it to release the table
mapping.

Signed-off-by: default avatarHanjun Guo <guohanjun@huawei.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent ead7ba13
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1297,8 +1297,10 @@ static void acpi_sleep_hibernate_setup(void)
		return;

	acpi_get_table(ACPI_SIG_FACS, 1, (struct acpi_table_header **)&facs);
	if (facs)
	if (facs) {
		s4_hardware_signature = facs->hardware_signature;
		acpi_put_table((struct acpi_table_header *)facs);
	}
}
#else /* !CONFIG_HIBERNATION */
static inline void acpi_sleep_hibernate_setup(void) {}