]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
regmap: Initialize `map->debugfs' before regcache
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Mon, 11 Mar 2013 17:27:02 +0000 (17:27 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Apr 2013 16:52:02 +0000 (09:52 -0700)
commit5d05e0b8506e4ff27a23af6b552ab646192e2260
tree1ca04010e460731823fc17ce7696276667c1cc6f
parent2b44022a4cb95795c72bbda12ef1bd66a30fb3b5
regmap: Initialize `map->debugfs' before regcache

commit c6432ea9cc043994d5b7dcb3ad86a087777cb40c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/regmap/regmap.c