ALSA: core: Remove child proc file elements recursively
authorTakashi Iwai <tiwai@suse.de>
Wed, 22 Apr 2015 16:26:38 +0000 (18:26 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 24 Apr 2015 15:27:57 +0000 (17:27 +0200)
commitc560a6797e3bec1e04f1f6f9f3c2135db0f5c8ee
tree433dd8c4dd8c53ef7ebe4411f6dbdae7b1e9b74d
parent886364f679342a381c9cb4a0b2588fb103bb6a22
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>
include/sound/info.h
sound/core/info.c
sound/pci/hda/patch_hdmi.c