aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-16 10:33:36 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-16 10:33:36 -0500
commitf32ca3db7f0b05a88edf37ccb00e262290a213e7 (patch)
tree872a36b411cf6c23911e51d33c33b81978d9cb96 /drivers/base
parente8d6539c8a94b88fc7ca5d6bdd9eeb0e64b434e4 (diff)
regmap: debugfs: Fix seeking from the cache
We don't want to bomb out early if we failed to get the cache any more, just soldier on instead and we won't get confused and always return the first block. Reported-by: Philipp Zabel <p.zabel@pengutronix.de Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/regmap/regmap-debugfs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regmap/regmap-debugfs.c
index 46a213a596e2..d9a6c94ce423 100644
--- a/drivers/base/regmap/regmap-debugfs.c
+++ b/drivers/base/regmap/regmap-debugfs.c
@@ -121,8 +121,6 @@ static unsigned int regmap_debugfs_get_dump_start(struct regmap *map,
121 c->max = p - 1; 121 c->max = p - 1;
122 list_add_tail(&c->list, 122 list_add_tail(&c->list,
123 &map->debugfs_off_cache); 123 &map->debugfs_off_cache);
124 } else {
125 return base;
126 } 124 }
127 125
128 /* 126 /*