ASoC: mpc5200_dma: Don't overwrite ac97 device private_data
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 10 Nov 2014 21:41:44 +0000 (22:41 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 18 Nov 2014 15:26:05 +0000 (15:26 +0000)
commit65c72efd1ea370f0311a5d89754996fff9fc0747
treee4b339c1b7c16fa1132ffdb678dcb7aaa9472579
parent35480e3536cdab1ee1976675e798f16d707f5356
ASoC: mpc5200_dma: Don't overwrite ac97 device private_data

The mpc5200_dma overwrites the private_data field of the CODEC's AC'97
device with the DMA drivers private data, but never actually reads it again.
Given that the private_data field is supposed to be owned by the AC'97
driver, overwriting it may cause undefined behavior. This patch removes the
code that overwrites the field from the driver.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/mpc5200_dma.c