[alsa-devel] [PATCH] ALSA: hda/ca0132: need CONFIG_PCI for compile
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Tue Feb 5 07:57:22 CET 2019
From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
commit d99501b8575d ("ALSA: hda/ca0132 - Call pci_iounmap() instead of
iounmap()") started to use pci_iounmap() on ca0132, but then, it should
be depends on CONFIG_PCI.
Otherwise, non CONFIG_PCI compile will be failed, like below
linux/sound/pci/hda/patch_ca0132.c: In function 'ca0132_free':
linux/sound/pci/hda/patch_ca0132.c:8455:3: error: implicit\
declaration of function 'pci_iounmap'; did you mean\
'pcim_iounmap'? [-Werror=implicit-function-declaration]
pci_iounmap(codec->bus->pci, spec->mem_base);
^~~~~~~~~~~
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
sound/pci/hda/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/pci/hda/Kconfig b/sound/pci/hda/Kconfig
index 4235907..03af159 100644
--- a/sound/pci/hda/Kconfig
+++ b/sound/pci/hda/Kconfig
@@ -171,6 +171,7 @@ comment "Set to Y if you want auto-loading the codec driver"
config SND_HDA_CODEC_CA0132
tristate "Build Creative CA0132 codec support"
+ depends on CONFIG_PCI
help
Say Y or M here to include Creative CA0132 codec support in
snd-hda-intel driver.
--
2.7.4
More information about the Alsa-devel
mailing list