diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-04-22 16:26:38 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-04-24 15:27:57 (GMT) |
commit | c560a6797e3bec1e04f1f6f9f3c2135db0f5c8ee (patch) | |
tree | 433dd8c4dd8c53ef7ebe4411f6dbdae7b1e9b74d /sound/pci | |
parent | 886364f679342a381c9cb4a0b2588fb103bb6a22 (diff) | |
download | linux-c560a6797e3bec1e04f1f6f9f3c2135db0f5c8ee.tar.xz |
ALSA: core: Remove child proc file elements recursively
This patch changes the way to manage the resource release of proc
files: namely, let snd_info_free_entry() freeing the whole children.
This makes it us possible to drop the snd_device_*() management. Then
snd_card_proc_new() becomes merely a wrapper to
snd_info_create_card_entry().
Together with this change, now you need to call snd_info_free_entry()
for a proc entry created via snd_card_proc_new(), while it was freed
via snd_device_free() beforehand.
Acked-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/patch_hdmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index 5f44f60..6e7e0b8 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -592,7 +592,7 @@ static int eld_proc_new(struct hdmi_spec_per_pin *per_pin, int index) static void eld_proc_free(struct hdmi_spec_per_pin *per_pin) { if (!per_pin->codec->bus->shutdown && per_pin->proc_entry) { - snd_device_free(per_pin->codec->card, per_pin->proc_entry); + snd_info_free_entry(per_pin->proc_entry); per_pin->proc_entry = NULL; } } |