ASoC: soc-core: Add support for NULL default register caches
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Mon, 10 Jan 2011 10:10:56 +0000 (10:10 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 10 Jan 2011 22:19:31 +0000 (22:19 +0000)
commit2aa86323d815bab62a7e1d3ef8ed6c81a6dfeffa
treee57cf635b4a0bc7c8d76182f869ae4babbd12395
parent0d51a9cbb6c1275cc0f3840c36f8b7840a438c59
ASoC: soc-core: Add support for NULL default register caches

The infrastructure for handling NULL default register maps is already
included in the soc-cache code, just ensure that we don't try to dereference
a NULL pointer while accessing a NULL register cache.

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