Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: stm: depend on COMMON_CLK to fix compile tests

The STM32 I2S drivers use Common Clock Framework thus they cannot be
built on platforms without it (e.g. compile test on MIPS with RALINK and
SOC_RT305X):

/usr/bin/mips-linux-gnu-ld: sound/soc/stm/stm32_i2s.o: in function `stm32_i2s_hw_params':
stm32_i2s.c:(.text+0x1870): undefined reference to `clk_set_parent'

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20201116175133.402553-3-krzk@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
82ceffce c3d900dc

+1
+1
sound/soc/stm/Kconfig
··· 15 15 config SND_SOC_STM32_I2S 16 16 tristate "STM32 I2S interface (SPI/I2S block) support" 17 17 depends on (ARCH_STM32 && OF) || COMPILE_TEST 18 + depends on COMMON_CLK 18 19 depends on SND_SOC 19 20 select SND_SOC_GENERIC_DMAENGINE_PCM 20 21 select REGMAP_MMIO