]> www.infradead.org Git - users/dwmw2/linux.git/commit
ASoC: loongson: make loongson-i2s.o a separate module
authorArnd Bergmann <arnd@arndb.de>
Tue, 15 Oct 2024 15:09:54 +0000 (15:09 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 17 Oct 2024 11:13:10 +0000 (12:13 +0100)
commit43916d9288460bd76d47128898fdf5972dfdb87f
tree9963d8c6d96d3dbdbbe5b78e597df39e84d94a52
parent7bc18a78157997575d8260bd922fff11fb5f21df
ASoC: loongson: make loongson-i2s.o a separate module

An object file should not be linked into multiple modules and/or
vmlinux:

scripts/Makefile.build:221: /home/arnd/arm-soc/sound/soc/loongson/Makefile: loongson_i2s.o is added to multiple modules: snd-soc-loongson-i2s-pci snd-soc-loongson-i2s-plat

Change this one to make it a library module with two exported symbols
that will work in any configuration.

Fixes: ba4c5fad598c ("ASoC: loongson: Add I2S controller driver as platform device")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20241015150958.2294155-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/loongson/Makefile
sound/soc/loongson/loongson_i2s.c