]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: samsung-idma: avoid 64-bit division
authorArnd Bergmann <arnd@arndb.de>
Tue, 29 Apr 2014 11:18:25 +0000 (19:18 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 1 May 2014 03:31:13 +0000 (20:31 -0700)
commitd974eb9e73d39972933d30e1c5735ca02fb14c5d
treec57888179dd5ab97a3c112f5fcf7fbb6ed2f20ca
parent103837e683d1ca7437c3fbade28b31833e745747
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>
sound/soc/samsung/idma.c