Skip to content

Commit d99501b

Browse files
committed
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: aa31704 ("ALSA: hda/ca0132: Add PCI region2 iomap for SBZ") Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 563785e commit d99501b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/pci/hda/patch_ca0132.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8413,7 +8413,7 @@ static void ca0132_free(struct hda_codec *codec)
84138413

84148414
snd_hda_power_down(codec);
84158415
if (spec->mem_base)
8416-
iounmap(spec->mem_base);
8416+
pci_iounmap(codec->bus->pci, spec->mem_base);
84178417
kfree(spec->spec_init_verbs);
84188418
kfree(codec->spec);
84198419
}

0 commit comments

Comments
 (0)