Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 052d2cd1 authored by Mark Brown's avatar Mark Brown
Browse files

regmap: Do debugfs init before cache init



This allows caches to add custom debugfs files.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent d91e8db2
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -241,12 +241,12 @@ struct regmap *regmap_init(struct device *dev,
		goto err_map;
		goto err_map;
	}
	}


	regmap_debugfs_init(map);

	ret = regcache_init(map, config);
	ret = regcache_init(map, config);
	if (ret < 0)
	if (ret < 0)
		goto err_free_workbuf;
		goto err_free_workbuf;


	regmap_debugfs_init(map);

	return map;
	return map;


err_free_workbuf:
err_free_workbuf: