diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-06-16 11:00:39 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-06-16 13:56:08 +0200 |
commit | 08432e59c7d9a958e69cf6b7a03777ba4f26f10b (patch) | |
tree | ac697fcb29edf00b39d3731b0fa1dc5656a6ec87 /sound/soc/loongson | |
parent | ASoC: loongson: fix unused PM function warning (diff) | |
download | linux-08432e59c7d9a958e69cf6b7a03777ba4f26f10b.tar.xz linux-08432e59c7d9a958e69cf6b7a03777ba4f26f10b.zip |
ASoC: loongson: add PCI dependency
The new driver fails to build when PCI is disabled:
WARNING: unmet direct dependencies detected for SND_SOC_LOONGSON_I2S_PCI
Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && (LOONGARCH || COMPILE_TEST [=y]) && PCI [=n]
Selected by [y]:
- SND_SOC_LOONGSON_CARD [=y] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && (LOONGARCH || COMPILE_TEST [=y])
sound/soc/loongson/loongson_i2s_pci.c:167:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
module_pci_driver(loongson_i2s_driver);
Add the appropriate Kconfig dependency.
Fixes: d24028606e764 ("ASoC: loongson: Add Loongson ASoC Sound Card Support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230616090156.2347850-3-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/loongson')
-rw-r--r-- | sound/soc/loongson/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/loongson/Kconfig b/sound/soc/loongson/Kconfig index c175f9de19a8..b8d7e2bade24 100644 --- a/sound/soc/loongson/Kconfig +++ b/sound/soc/loongson/Kconfig @@ -16,6 +16,7 @@ config SND_SOC_LOONGSON_I2S_PCI config SND_SOC_LOONGSON_CARD tristate "Loongson Sound Card Driver" select SND_SOC_LOONGSON_I2S_PCI + depends on PCI help Say Y or M if you want to add support for SoC audio using loongson I2S controller. |