summaryrefslogtreecommitdiff
path: root/src/soc/amd/genoa_poc/domain.c
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2024-01-30 15:33:34 +0100
committerFelix Held <felix-coreboot@felixheld.de>2024-02-01 11:38:38 +0000
commitfbda323e8af2b0556abb0c76beca4482c58af8a2 (patch)
treeebd8f82477c3f64d1655b9c76aa73fbf22ac11d5 /src/soc/amd/genoa_poc/domain.c
parent30f36c35e75a1491edfc629766c146707dcb22f5 (diff)
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 <felix-coreboot@felixheld.de> Change-Id: I6a17e488a01cc52b2dab5dd3e3d58bdf3acb554d Reviewed-on: https://review.coreboot.org/c/coreboot/+/80269 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/soc/amd/genoa_poc/domain.c')
-rw-r--r--src/soc/amd/genoa_poc/domain.c2
1 files changed, 1 insertions, 1 deletions
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)