]> git.karo-electronics.de Git - mv-sheeva.git/commit
ASoC: codecs: wm8523: Fix register cache incoherency
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 28 Dec 2010 20:37:57 +0000 (21:37 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 28 Dec 2010 23:19:17 +0000 (23:19 +0000)
commitbeebca312009e9567d5e0229ea6b82bdf9a864cf
tree5e27ac1c90c174bc87ceab219424d8a80ed2d77b
parentd24eb0db9c8a7ceecae860bdc636ed1e8a86943a
ASoC: codecs: wm8523: Fix register cache incoherency

The multi-component patch(commit f0fba2ad1) moved the allocation of the
register cache from the driver to the ASoC core. Most drivers where adjusted to
this, but the wm8523 driver still uses its own register cache for its
private functions, while functions from the ASoC core use the generic cache.
Thus we end up with two from each other incoherent caches, which can lead to
undefined behaviour.
This patch fixes the issue by changing the wm8523 driver to use the
generic register cache in its private functions.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: Ian Lartey <ian@opensource.wolfsonmicro.com>
Cc: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org (for 2.6.37 only)
sound/soc/codecs/wm8523.c