From: Mark Brown Date: Wed, 16 Jan 2013 15:33:36 +0000 (+0900) Subject: regmap: debugfs: Fix seeking from the cache X-Git-Tag: upstream/snapshot3+hdmi~5822^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f32ca3db7f0b05a88edf37ccb00e262290a213e7;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 --- diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regmap/regmap-debugfs.c index 46a213a..d9a6c94 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, c->max = p - 1; list_add_tail(&c->list, &map->debugfs_off_cache); - } else { - return base; } /*