]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/ca0132 - make pci_iounmap() call conditional
authorArnd Bergmann <arnd@arndb.de>
Mon, 10 Dec 2018 20:54:25 +0000 (21:54 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 11 Dec 2018 08:15:39 +0000 (09:15 +0100)
commita9c6f1743b94b59e2c42f63dac5ae5c3d8ac6335
tree0bec6350a29da857e8239416693a60336ee93199
parent74d346690269a2eb415752915a9185e7b28047de
ALSA: hda/ca0132 - make pci_iounmap() call conditional

When building without CONFIG_PCI, we can (depending on the architecture)
get a link failure:

ERROR: "pci_iounmap" [sound/pci/hda/snd-hda-codec-ca0132.ko] undefined!

Adding a compile-time check for PCI gets it to work correctly on
32-bit ARM.

Fixes: 79deaacd97ef ("ALSA: hda/ca0132 - Call pci_iounmap() instead of iounmap()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_ca0132.c