summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/amd/common/block/acp/acp_gen1.c2
-rw-r--r--src/soc/amd/common/block/acp/acp_gen2.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/amd/common/block/acp/acp_gen1.c b/src/soc/amd/common/block/acp/acp_gen1.c
index 0fe37f3806..4bfd71110e 100644
--- a/src/soc/amd/common/block/acp/acp_gen1.c
+++ b/src/soc/amd/common/block/acp/acp_gen1.c
@@ -17,7 +17,7 @@
static void acp_update32(uintptr_t bar, uint32_t reg, uint32_t clear, uint32_t set)
{
- clrsetbits32((void *)(bar + reg), clear, set);
+ clrsetbits32p(bar + reg, clear, set);
}
void acp_init(struct device *dev)
diff --git a/src/soc/amd/common/block/acp/acp_gen2.c b/src/soc/amd/common/block/acp/acp_gen2.c
index 50de4b0bd9..be24ec91e9 100644
--- a/src/soc/amd/common/block/acp/acp_gen2.c
+++ b/src/soc/amd/common/block/acp/acp_gen2.c
@@ -17,7 +17,7 @@
static void acp_update32(uintptr_t bar, uint32_t reg, uint32_t clear, uint32_t set)
{
- clrsetbits32((void *)(bar + reg), clear, set);
+ clrsetbits32p(bar + reg, clear, set);
}
void acp_init(struct device *dev)