regmap: debugfs: Discard the cache if we fail to allocate an entry
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 8 Jan 2013 13:35:58 +0000 (13:35 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 8 Jan 2013 20:52:46 +0000 (20:52 +0000)
Rather than trying to soldier on with a partially allocated cache just
throw the cache away and pretend we don't have one in case we can get a
full cache next time around.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap-debugfs.c

Simple merge