diff options
Diffstat (limited to 'drivers/base/regmap/regcache-rbtree.c')
-rw-r--r-- | drivers/base/regmap/regcache-rbtree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regcache-rbtree.c b/drivers/base/regmap/regcache-rbtree.c index 5c1435c4e210..0fccc99881fd 100644 --- a/drivers/base/regmap/regcache-rbtree.c +++ b/drivers/base/regmap/regcache-rbtree.c | |||
@@ -332,7 +332,7 @@ regcache_rbtree_node_alloc(struct regmap *map, unsigned int reg) | |||
332 | } | 332 | } |
333 | 333 | ||
334 | if (!rbnode->blklen) { | 334 | if (!rbnode->blklen) { |
335 | rbnode->blklen = sizeof(*rbnode); | 335 | rbnode->blklen = 1; |
336 | rbnode->base_reg = reg; | 336 | rbnode->base_reg = reg; |
337 | } | 337 | } |
338 | 338 | ||