diff options
author | Nicholas Chin <nic.c3.14@gmail.com> | 2024-10-05 20:41:31 -0600 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2024-10-07 20:37:35 +0000 |
commit | 4320b5da8ff3b7e88343c1a9d5d42f8e6400833d (patch) | |
tree | eb83effa960f447d639d12189bdd7eadd9f306d8 /src/northbridge | |
parent | e5c2babcc0d162e927a4111ebe2433fe226497ab (diff) |
nb/intel/gm45/northbridge.c: Use config_of_soc()
Use the config_of_soc macro, which resolves to a direct pointer to the
chip config, instead of the chip_info member of __pci_0_00_0 to obtain
the same address.
Change-Id: If265819613727853d0f96dc6bb95ba71a2cfeeb1
Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84675
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/northbridge')
-rw-r--r-- | src/northbridge/intel/gm45/northbridge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/northbridge/intel/gm45/northbridge.c b/src/northbridge/intel/gm45/northbridge.c index 76ca4eea9d..67fcfddf32 100644 --- a/src/northbridge/intel/gm45/northbridge.c +++ b/src/northbridge/intel/gm45/northbridge.c @@ -13,6 +13,7 @@ #include <device/device.h> #include <device/pci_def.h> #include <device/pci_ops.h> +#include <static.h> #include <stdint.h> #include "chip.h" @@ -239,7 +240,6 @@ struct chip_operations northbridge_intel_gm45_ops = { bool northbridge_support_slfm(void) { - struct device *gmch = __pci_0_00_0; - struct northbridge_intel_gm45_config *config = gmch->chip_info; + struct northbridge_intel_gm45_config *config = config_of_soc(); return config->slfm == 1; } |