]> Pileus Git - ~andy/linux/commitdiff
regmap: Do debugfs init before cache init
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 21 Nov 2011 19:05:13 +0000 (19:05 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 21 Nov 2011 19:48:26 +0000 (19:48 +0000)
This allows caches to add custom debugfs files.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap.c

index 10ecbba32e10992504a5fb1e65716d7d38b3a266..a8620900abc489cc0410f8420b35e26269c5e9ca 100644 (file)
@@ -241,12 +241,12 @@ struct regmap *regmap_init(struct device *dev,
                goto err_map;
        }
 
+       regmap_debugfs_init(map);
+
        ret = regcache_init(map, config);
        if (ret < 0)
                goto err_free_workbuf;
 
-       regmap_debugfs_init(map);
-
        return map;
 
 err_free_workbuf: