From 4320b5da8ff3b7e88343c1a9d5d42f8e6400833d Mon Sep 17 00:00:00 2001 From: Nicholas Chin Date: Sat, 5 Oct 2024 20:41:31 -0600 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/84675 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/northbridge/intel/gm45/northbridge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/northbridge/intel/gm45') 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 #include #include +#include #include #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; } -- cgit v1.2.3