commit | d3bf1561253383a3dbcc40afdb2b039d56093a3e | [log] [tgz] |
---|---|---|
author | Chuansheng Liu <chuansheng.liu@intel.com> | Wed Dec 26 00:57:32 2012 +0800 |
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | Thu Dec 27 16:14:43 2012 +0000 |
tree | 697ee9b31a828ea02ff3d93e93e9c876bb802633 | |
parent | 865df9cb122d9e5ecbbb7056f2c9c64933bf8dd0 [diff] |
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 <chuansheng.liu@intel.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>