summaryrefslogtreecommitdiff
path: root/sound/pci/vx222
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2021-07-15 09:59:11 +0200
committerTakashi Iwai <tiwai@suse.de>2021-07-19 16:17:09 +0200
commita033954140ac43a8ce0eab469229a107cfee1c87 (patch)
tree4b0ef5dc6df1e595a33e49d2c6719d3238323ddd /sound/pci/vx222
parent5adfd8c26607cdc666aa86ecc10104924d54082a (diff)
ALSA: vx: Manage vx_core object with devres
The firmware data are also released automatically. Link: https://lore.kernel.org/r/20210715075941.23332-50-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/vx222')
-rw-r--r--sound/pci/vx222/vx222.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/pci/vx222/vx222.c b/sound/pci/vx222/vx222.c
index 04c7204cb7bc..46a80ef1d481 100644
--- a/sound/pci/vx222/vx222.c
+++ b/sound/pci/vx222/vx222.c
@@ -109,7 +109,6 @@ static int snd_vx222_free(struct vx_core *chip)
if (vx->port[0])
pci_release_regions(vx->pci);
pci_disable_device(vx->pci);
- kfree(chip);
return 0;
}