ASoC: sta32x: Fix cache sync
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 22 Feb 2014 17:27:17 +0000 (18:27 +0100)
committerMark Brown <broonie@linaro.org>
Sun, 23 Feb 2014 01:48:55 +0000 (10:48 +0900)
commit70ff00f82a6af0ff68f8f7b411738634ce2f20d0
tree0f443c6417f5ccc108af7f7be4c3290fda192669
parent025c3fa9256d4c54506b7a29dc3befac54f5c68d
ASoC: sta32x: Fix cache sync

codec->control_data contains a pointer to the regmap struct of the device, not
to the device private data. Use snd_soc_codec_get_drvdata() instead.

The issue was introduced in commit 29fdf4fbbe ("ASoC: sta32x: Convert to
regmap").

Fixes: 29fdf4fbbe (ASoC: sta32x: Convert to regmap)
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/sta32x.c