From: Takashi Iwai Date: Fri, 23 Jun 2006 12:38:23 +0000 (+0200) Subject: [ALSA] Unregister device files at disconnection X-Git-Tag: v2.6.19-rc1~1270^2~145 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c461482c8072bb073e6146db320d3da85cdc89ad;p=pandora-kernel.git [ALSA] Unregister device files at disconnection Orignally proposed by Sam Revitch . Unregister device files at disconnection to avoid the futher accesses. Also, the dev_unregister callback is removed and replaced with the combination of disconnect + free. A new function snd_card_free_when_closed() is introduced, which is used in USB disconnect callback. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- Reading git-diff-tree failed