• Lars-Peter Clausen's avatar
    ASoC: codecs: wm9090: Fix register cache incoherency · da280f51
    Lars-Peter Clausen authored
    The multi-component patch(commit f0fba2ad) moved the allocation of the
    register cache from the driver to the ASoC core. Most drivers where adjusted to
    this, but the wm9090 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 wm9090 driver to use the
    generic register cache in its private functions.
    Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
    Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
    Cc: stable@kernel.org (for 2.6.37 only)
    da280f51
wm9090.c 20.3 KB