]> Pileus Git - ~andy/linux/blobdiff - drivers/base/regmap/regmap-debugfs.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux...
[~andy/linux] / drivers / base / regmap / regmap-debugfs.c
index 720e14248167b81c6c5b7032d9fcefbc62b7a9b7..d9a6c94ce42338b27c98c87f8e82910fdaa20579 100644 (file)
@@ -116,6 +116,13 @@ static unsigned int regmap_debugfs_get_dump_start(struct regmap *map,
                }
        }
 
+       /* Close the last entry off if we didn't scan beyond it */
+       if (c) {
+               c->max = p - 1;
+               list_add_tail(&c->list,
+                             &map->debugfs_off_cache);
+       }
+
        /*
         * This should never happen; we return above if we fail to
         * allocate and we should never be in this code if there are