public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] regmap: Initialize `map->debugfs' before regcache
@ 2013-03-11 17:27 Dimitris Papastamos
  2013-03-12 18:25 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Dimitris Papastamos @ 2013-03-11 17:27 UTC (permalink / raw)
  To: Mark Brown; +Cc: patches, linux-kernel

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>
---
 drivers/base/regmap/regmap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index 3d23675..50ef277 100644
--- a/drivers/base/regmap/regmap.c
+++ b/drivers/base/regmap/regmap.c
@@ -710,12 +710,12 @@ skip_format_initialization:
 		}
 	}
 
+	regmap_debugfs_init(map, config->name);
+
 	ret = regcache_init(map, config);
 	if (ret != 0)
 		goto err_range;
 
-	regmap_debugfs_init(map, config->name);
-
 	/* Add a devres resource for dev_get_regmap() */
 	m = devres_alloc(dev_get_regmap_release, sizeof(*m), GFP_KERNEL);
 	if (!m) {
-- 
1.8.1.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] regmap: Initialize `map->debugfs' before regcache
  2013-03-11 17:27 [PATCH] regmap: Initialize `map->debugfs' before regcache Dimitris Papastamos
@ 2013-03-12 18:25 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2013-03-12 18:25 UTC (permalink / raw)
  To: Dimitris Papastamos; +Cc: patches, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 349 bytes --]

On Mon, Mar 11, 2013 at 05:27:02PM +0000, Dimitris Papastamos wrote:
> 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.

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-12 18:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-11 17:27 [PATCH] regmap: Initialize `map->debugfs' before regcache Dimitris Papastamos
2013-03-12 18:25 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox