regmap: debugfs: Fix seeking from the cache
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 16 Jan 2013 15:33:36 +0000 (00:33 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 16 Jan 2013 15:33:36 +0000 (00:33 +0900)
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>
drivers/base/regmap/regmap-debugfs.c

index 46a213a596e29ec5ae142477e40c563744f49ede..d9a6c94ce42338b27c98c87f8e82910fdaa20579 100644 (file)
@@ -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;
        }
 
        /*