]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Release resources in device release callback
authorTakashi Iwai <tiwai@suse.de>
Fri, 27 Feb 2015 22:25:35 +0000 (23:25 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 3 Mar 2015 10:48:46 +0000 (11:48 +0100)
commit3d625739c001ed7c6365fd36203ca8761f8987e9
tree1096d79862faec2f24b7780b4ed3204d8de6f96a
parentcb1cff7e7043492bdc8d5e0efc646905415a1ada
ALSA: hda - Release resources in device release callback

Move the destructor code to device release callback for the codec
object instead.  This is a safer place to release the resources than
dev_free callback in general.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c