summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-07-03 10:33:39 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-07-03 10:41:45 +0100
commit1df892cba45f9856d369a6a317ad2d1e44bca423 (patch)
tree290bc3c176dde2e0be7616d4a2a8fe79b2f2bacc /sound/soc
parentda9ff1f796e81976935407251815838bef9868d4 (diff)
downloadlinux-1df892cba45f9856d369a6a317ad2d1e44bca423.tar.gz
ASoC: Fix register cache initialisation for WM8753
The wrong register cache variable was being used to provide the size for the memcpy(), resulting in a copy of only a void * of data. Reported-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: stable@kernel.org
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/wm8753.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8753.c b/sound/soc/codecs/wm8753.c
index d28eeaceb857..e06b0cfe4f2c 100644
--- a/sound/soc/codecs/wm8753.c
+++ b/sound/soc/codecs/wm8753.c
@@ -1664,7 +1664,7 @@ static int wm8753_register(struct wm8753_priv *wm8753)
codec->reg_cache = &wm8753->reg_cache;
codec->private_data = wm8753;
- memcpy(codec->reg_cache, wm8753_reg, sizeof(codec->reg_cache));
+ memcpy(codec->reg_cache, wm8753_reg, sizeof(wm8753->reg_cache));
INIT_DELAYED_WORK(&codec->delayed_work, wm8753_work);
ret = wm8753_reset(codec);