Skip to content

Commit c97617a

Browse files
committed
ALSA: hda/ca0132 - Fix build error without CONFIG_PCI
A call of pci_iounmap() call without CONFIG_PCI leads to a build error on some architectures. We tried to address this and add a check of IS_ENABLED(CONFIG_PCI), but this still doesn't seem enough for sh. Ideally we should fix it globally, it's really a corner case, so let's paper over it with a simpler ifdef. Fixes: 1e73359 ("ALSA: hda/ca0132 - make pci_iounmap() call conditional") Reported-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 4f2ab5e commit c97617a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sound/pci/hda/patch_ca0132.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8451,8 +8451,10 @@ static void ca0132_free(struct hda_codec *codec)
84518451
ca0132_exit_chip(codec);
84528452

84538453
snd_hda_power_down(codec);
8454-
if (IS_ENABLED(CONFIG_PCI) && spec->mem_base)
8454+
#ifdef CONFIG_PCI
8455+
if (spec->mem_base)
84558456
pci_iounmap(codec->bus->pci, spec->mem_base);
8457+
#endif
84568458
kfree(spec->spec_init_verbs);
84578459
kfree(codec->spec);
84588460
}

0 commit comments

Comments
 (0)