From: Chuansheng Liu Date: Tue, 25 Dec 2012 16:57:32 +0000 (+0800) Subject: ASoC: core: fix the memory leak in case of remove_aux_dev() X-Git-Tag: v3.8-rc4~23^2~1^2~10^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3bf1561253383a3dbcc40afdb2b039d56093a3e;p=pandora-kernel.git ASoC: core: fix the memory leak in case of remove_aux_dev() When probing aux_dev, initializing is as below: device_initialize() device_add() So when remove aux_dev, we need do as below: device_del() device_put() Otherwise, the rtd_release() will not be called. So here using device_unregister() to replace device_del(), like the action in soc_remove_link_dais(). Signed-off-by: liu chuansheng Signed-off-by: Mark Brown --- Reading git-diff-tree failed