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)
commit1e73359a24fad529b0794515b46cbfff99e5fbe6
tree0bec6350a29da857e8239416693a60336ee93199
parent46079bacb469c2eff15802fcccc88b0bd56b1e6e
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: d99501b8575d ("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