Skip to contentSkip to conversation

ALSA: hda/ca0132 - Call pci_iounmap() instead of iounmap()

PATCH New Takashi Iwai 1 participant 1 message Nov 12, 2018 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: hda/ca0132 - Call pci_iounmap() instead of iounmap()

We need to call pci_iounmap() instead of iounmap() for the regions obtained via pci_iomap() call for some archs that need special treatment.

Fixes aa31704fd81c ("ALSA: hda/ca0132: Add PCI region2 iomap for SBZ")
---
 sound/pci/hda/patch_ca0132.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/pci/hda/patch_ca0132.c +1 -1
index 0a24037184c3..bdbbc51e8d18 100644
@@ -8413,7 +8413,7 @@ static void ca0132_free(struct hda_codec *codec)
 
 	snd_hda_power_down(codec);
 	if (spec->mem_base)
-		iounmap(spec->mem_base);
+		pci_iounmap(codec->bus->pci, spec->mem_base);
 	kfree(spec->spec_init_verbs);
 	kfree(codec->spec);
 }
Signature · 1 line
2.19.1