[PATCH] ALSA: hda/ca0132: need CONFIG_PCI for compile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>

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@xxxxxxxxxxx>
---
 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

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux