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>
This commit is contained in:
Nicholas Chin 2024-10-05 20:41:31 -06:00 committed by Martin L Roth
commit 4320b5da8f

View file

@ -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;
}