ASoC: sprd: Fix modular build
authorMark Brown <broonie@kernel.org>
Wed, 3 Apr 2019 04:55:40 +0000 (11:55 +0700)
committerMark Brown <broonie@kernel.org>
Wed, 3 Apr 2019 05:49:00 +0000 (12:49 +0700)
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Suggested-by: Baolin Wang <baolin.wang@linaro.org>
Tested-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sprd/Makefile

index fa1d5476b8dae083bf32d263ec671d11d1ebaeef..e6c2606da8e21b6e27afc6c04824cad667eee978 100644 (file)
@@ -1,4 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
 # Spreadtrum Audio Support
 
-obj-$(CONFIG_SND_SOC_SPRD)     += sprd-pcm-dma.o sprd-pcm-compress.o
+snd-soc-sprd-platform-objs := sprd-pcm-dma.o sprd-pcm-compress.o
+
+obj-$(CONFIG_SND_SOC_SPRD) += snd-soc-sprd-platform.o