regmap: Initialize `map->debugfs' before regcache
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Mon, 11 Mar 2013 17:27:02 +0000 (17:27 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 12 Mar 2013 18:25:10 +0000 (18:25 +0000)
commitc6432ea9cc043994d5b7dcb3ad86a087777cb40c
tree753612a8b95236094e854ec265299a9e22b8320d
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9
regmap: Initialize `map->debugfs' before regcache

In the rbtree code we are exposing statistics relating to the
number of nodes/registers of the rbtree cache for each of the
devices.  Ensure that `map->debugfs' has been initialized before
we attempt to initialize the debugfs entry for the rbtree cache.

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
drivers/base/regmap/regmap.c