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)
commit95f971c745a343255744703dc4ae8d78508519cc
treefd2e65fe41219457c64eaa62635bb8dfa65b0ddf
parent5a1d6d172bc8a3ecf29add6c84d047025cb71566
regmap: debugfs: Discard the cache if we fail to allocate an entry

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