]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: sophgo: fix 64-bit division build failure
authorArnd Bergmann <arnd@arndb.de>
Mon, 2 Feb 2026 09:53:14 +0000 (10:53 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 2 Feb 2026 12:09:35 +0000 (12:09 +0000)
commitcad9720dd7e4dcdaec8e854fb2c1d1d45fd6dbad
tree6f11acc995d87936a29742c03dcac79b65638409
parent1db63f6af17945aed7497ce34a5648add0c1b6d9
ASoC: sophgo: fix 64-bit division build failure

cv1800b_adc_setbclk_div() does four 64-bit divisions in a row, which
is rather inefficient on 32-bit systems, and using the plain division
causes a build failure as a result:

ERROR: modpost: "__aeabi_uldivmod" [sound/soc/sophgo/cv1800b-sound-adc.ko] undefined!

Consolidate those into a single division using the div_u64() macro.

Fixes: 4cf8752a03e6 ("ASoC: sophgo: add CV1800B internal ADC codec driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20260202095323.1233553-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sophgo/cv1800b-sound-adc.c