ASoC: atmel: mchp-spdifrx needs COMMON_CLK
authorArnd Bergmann <arnd@arndb.de>
Thu, 3 Dec 2020 22:38:05 +0000 (23:38 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 4 Dec 2020 23:26:34 +0000 (23:26 +0000)
Compile-testing this driver on an older platform without CONFIG_COMMON_CLK fails with

ERROR: modpost: "clk_set_min_rate" [sound/soc/atmel/snd-soc-mchp-spdifrx.ko] undefined!

Make this is a strict dependency.

Fixes: ef265c55c1ac ("ASoC: mchp-spdifrx: add driver for SPDIF RX")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Link: https://lore.kernel.org/r/20201203223815.1353451-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/atmel/Kconfig

index bd8854bfd2ee41a547e66b70bde78d211de0b4f1..142373ec411adb31ed33f5a7cf0a321c72c91de8 100644 (file)
@@ -148,6 +148,7 @@ config SND_MCHP_SOC_SPDIFTX
 config SND_MCHP_SOC_SPDIFRX
        tristate "Microchip ASoC driver for boards using S/PDIF RX"
        depends on OF && (ARCH_AT91 || COMPILE_TEST)
+       depends on COMMON_CLK
        select SND_SOC_GENERIC_DMAENGINE_PCM
        select REGMAP_MMIO
        help