ASoC: soc-cache: Use BUG_ON() for unsupported hw_read() calls
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Mon, 8 Nov 2010 15:37:07 +0000 (15:37 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 8 Nov 2010 16:51:30 +0000 (16:51 +0000)
commit5aaa062c27273d21d1f52ddc20e697b6466057d4
tree93ce7c2d0fcbe0d79c960e01fe391b3e135f3d65
parent989db2005c328300239da4df4d80b057f8509d3b
ASoC: soc-cache: Use BUG_ON() for unsupported hw_read() calls

Instead of dereferencing a NULL function pointer and falling apart
use BUG_ON() for any unimplemented hw_read() calls.

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>
sound/soc/soc-cache.c