ACPI: Replace uses of CBMEM_ID_ACPI_GNVS
These are the simple cbmem_find() cases. Also drop the redundant error messages. Change-Id: I78e5445eb09c322ff94fe4f65345eb2997bd10ef Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42361 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
committed by
Patrick Georgi
parent
e37459ed64
commit
5daa1d3898
@ -8,6 +8,7 @@
|
||||
#include <device/pci.h>
|
||||
#include <device/pci_ops.h>
|
||||
#include <cbmem.h>
|
||||
#include <acpi/acpi_gnvs.h>
|
||||
#include <amdblocks/amd_pci_util.h>
|
||||
#include <amdblocks/agesawrapper.h>
|
||||
#include <amdblocks/reset.h>
|
||||
@ -542,7 +543,7 @@ static void set_nvs_sws(void *unused)
|
||||
sws = cbmem_find(CBMEM_ID_POWER_STATE);
|
||||
if (sws == NULL)
|
||||
return;
|
||||
gnvs = cbmem_find(CBMEM_ID_ACPI_GNVS);
|
||||
gnvs = acpi_get_gnvs();
|
||||
if (gnvs == NULL)
|
||||
return;
|
||||
|
||||
@ -575,7 +576,7 @@ static void set_sb_final_nvs(void)
|
||||
size_t fwsize;
|
||||
const struct device *sd, *sata;
|
||||
|
||||
struct global_nvs_t *gnvs = cbmem_find(CBMEM_ID_ACPI_GNVS);
|
||||
struct global_nvs_t *gnvs = acpi_get_gnvs();
|
||||
if (gnvs == NULL)
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user