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)
commitd56db741b8e688a0b9d4d5bb9caa11dfcb7c0b08
tree1096d79862faec2f24b7780b4ed3204d8de6f96a
parent2f35c630f7d49efdef29b58d81ed2531ddd916d9
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