From fbda323e8af2b0556abb0c76beca4482c58af8a2 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 30 Jan 2024 15:33:34 +0100 Subject: vc/amd/opensil/genoa_poc/memmap: pass resource index as pointer To make add_opensil_memmap match the other function that are directly or indirectly called by amd_pci_domain_read_resources, pass the resource index as a pointer instead of passing it by value and then returning the new resource index. Signed-off-by: Felix Held Change-Id: I6a17e488a01cc52b2dab5dd3e3d58bdf3acb554d Reviewed-on: https://review.coreboot.org/c/coreboot/+/80269 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- src/soc/amd/genoa_poc/domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/amd') diff --git a/src/soc/amd/genoa_poc/domain.c b/src/soc/amd/genoa_poc/domain.c index b34d2e36bb..711dfc3d79 100644 --- a/src/soc/amd/genoa_poc/domain.c +++ b/src/soc/amd/genoa_poc/domain.c @@ -15,7 +15,7 @@ void read_soc_memmap_resources(struct device *domain, unsigned long *idx) { - *idx = add_opensil_memmap(domain, *idx); + add_opensil_memmap(domain, idx); } static void genoa_domain_set_resources(struct device *domain) -- cgit v1.2.3