drivers: can: sam: fix sys_write32() arguments order

Fix the order of the arguments to sys_write32().

Fixes: #80750

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
This commit is contained in:
Henrik Brix Andersen 2024-11-01 16:19:26 +00:00 committed by Mahesh Mahadevan
parent cef75af6af
commit 0bb5270f7b
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ static int can_sam_init(const struct device *dev)
uint32_t mrba = sam_cfg->mram & 0xFFFF0000;
/* keep lower 16bit; update DMA Base Register */
sys_write32(sam_cfg->dma_base, (sys_read32(sam_cfg->dma_base) & 0x0000FFFF) | mrba);
sys_write32((sys_read32(sam_cfg->dma_base) & 0x0000FFFF) | mrba, sam_cfg->dma_base);
ret = can_mcan_configure_mram(dev, mrba, sam_cfg->mram);
if (ret != 0) {