mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-20 15:27:52 +07:00
ASoC: samsung-idma: avoid 64-bit division
dma_addr_t may be 64 bit wide, which causes a build failure when doing a division on it. Here it is safe to cast to an u32 type, which avoids the problem. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Xia Kaixu <kaixu.xia@linaro.org> Tested-by: Tushar Behera <tushar.behera@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
01c2cb67ea
commit
1aa91b6dd4
@ -274,7 +274,7 @@ static irqreturn_t iis_irq(int irqno, void *dev_id)
|
||||
|
||||
addr = readl(idma.regs + I2SLVL0ADDR) - idma.lp_tx_addr;
|
||||
addr += prtd->periodsz;
|
||||
addr %= (prtd->end - prtd->start);
|
||||
addr %= (u32)(prtd->end - prtd->start);
|
||||
addr += idma.lp_tx_addr;
|
||||
|
||||
writel(addr, idma.regs + I2SLVL0ADDR);
|
||||
|
Loading…
Reference in New Issue
Block a user