diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-11-10 22:41:45 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-11-18 16:26:05 +0100 |
commit | 70f3af3ca15affaef3d026a5aa6e44c4627ea6c7 (patch) | |
tree | 214ed9e55bd37bc22922e44a31a28b71ac0d24f3 /sound/soc/soc-ac97.c | |
parent | ASoC: mpc5200_dma: Don't overwrite ac97 device private_data (diff) | |
download | linux-70f3af3ca15affaef3d026a5aa6e44c4627ea6c7.tar.xz linux-70f3af3ca15affaef3d026a5aa6e44c4627ea6c7.zip |
ASoC: Properly handle AC'97 device lifetime management
The memory that a struct device is contained in must not be freed except
from within the device's release callback. The ASoC code currently does not
adhere to this rule for the AC'97 device. This patch fixes it by moving the
freeing of the AC'97 to the release callback and splitting up the
registration and unregistration of the device into separate steps for
getting/putting the reference to the device and adding/removing it to the
device hierarchy.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-ac97.c')
0 files changed, 0 insertions, 0 deletions