]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-cache: Use reg_def_copy instead of reg_cache_default
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Thu, 2 Dec 2010 16:11:05 +0000 (16:11 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 3 Dec 2010 16:37:06 +0000 (16:37 +0000)
commit0633f89b402f86ca8cf86db3639c6f8c5c4880b0
tree4391baddac89dc25cd242e44168a0bbf3e1442bc
parent00668378e806a0b0a50c91b7215e13b87326ff87
ASoC: soc-cache: Use reg_def_copy instead of reg_cache_default

Make sure to use codec->reg_def_copy instead of codec_drv->reg_cache_default
wherever necessary.  This change is necessary because in the next patch we
move the cache initialization code outside snd_soc_register_codec() and by that
time any data marked as __devinitconst such as the original reg_cache_default
array might have already been freed by the kernel.

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc.h
sound/soc/soc-cache.c
sound/soc/soc-core.c