ASoC: sta32x: Fix cache sync
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 22 Feb 2014 17:27:17 +0000 (18:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 05:30:07 +0000 (21:30 -0800)
commitdf87c8141cde79e6600693468138551a9fd3c674
tree07e99fc773ee39dd185438df598330e670537d39
parent8efd034580964d37aa378089fbe856d1a3963842
ASoC: sta32x: Fix cache sync

commit 70ff00f82a6af0ff68f8f7b411738634ce2f20d0 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/sta32x.c