Skip to content

Commit

Permalink
ALSA: hda/ca0132 - Call pci_iounmap() instead of iounmap()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai committed Nov 12, 2018
1 parent 563785e commit d99501b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/patch_ca0132.c
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit d99501b

Please sign in to comment.