]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit3335ddca9367675f4ee0bd50cc70402c4919a10d
tree4391baddac89dc25cd242e44168a0bbf3e1442bc
parentff819b8357df0ca9903ff7c9ad518b949c410123
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