From b0db813523ab6de2fa0894d1e2cb979f22a01871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Thu, 21 Jan 2021 16:34:43 +0200 Subject: soc/amd: Refactor ACPI power state and ELOG MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib7423c8d80355871393c377ebaffdfe2846d8852 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/49836 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/soc/amd/stoneyridge/include/soc/acpi.h | 4 ---- src/soc/amd/stoneyridge/southbridge.c | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'src/soc/amd/stoneyridge') diff --git a/src/soc/amd/stoneyridge/include/soc/acpi.h b/src/soc/amd/stoneyridge/include/soc/acpi.h index a498eb9370..4eb7f359ec 100644 --- a/src/soc/amd/stoneyridge/include/soc/acpi.h +++ b/src/soc/amd/stoneyridge/include/soc/acpi.h @@ -17,8 +17,4 @@ unsigned long southbridge_write_acpi_tables(const struct device *device, const char *soc_acpi_name(const struct device *dev); -struct chipset_power_state { - struct acpi_pm_gpe_state gpe_state; -}; - #endif /* AMD_STONEYRIDGE_ACPI_H */ diff --git a/src/soc/amd/stoneyridge/southbridge.c b/src/soc/amd/stoneyridge/southbridge.c index 2a380969e0..feb25f1e09 100644 --- a/src/soc/amd/stoneyridge/southbridge.c +++ b/src/soc/amd/stoneyridge/southbridge.c @@ -411,7 +411,7 @@ void southbridge_init(void *chip_info) state = cbmem_add(CBMEM_ID_POWER_STATE, sizeof(*state)); if (state) { acpi_fill_pm_gpe_state(&state->gpe_state); - acpi_pm_gpe_add_events_print_events(&state->gpe_state); + acpi_pm_gpe_add_events_print_events(); } acpi_clear_pm_gpe_status(); -- cgit v1.2.3