commit: http://blackfin.uclinux.org/git/?p=linux-kernel;a=commitdiff;h=5c1615810b0a27e6874a90664d864ba52247fa3d branch: http://blackfin.uclinux.org/git/?p=linux-kernel;a=shortlog;h=refs/heads/2011R1
Ensure that when we start up in cache only mode we can store defaults of zero, otherwise if the hardware is unavailable we won't be able to read. Signed-off-by: Mark Brown <[email protected]> Acked-by: Dimitris Papastamos <[email protected]> --- drivers/base/regmap/regcache-rbtree.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/base/regmap/regcache-rbtree.c b/drivers/base/regmap/regcache-rbtree.c index 887dbce..52511f9 100644 --- a/drivers/base/regmap/regcache-rbtree.c +++ b/drivers/base/regmap/regcache-rbtree.c @@ -252,9 +252,6 @@ static int regcache_rbtree_write(struct regmap *map, unsigned int reg, regcache_rbtree_set_register(rbnode, reg_tmp, value, map->cache_word_size); } else { - /* bail out early, no need to create the rbnode yet */ - if (!value) - return 0; /* look for an adjacent register to the one we are about to add */ for (node = rb_first(&rbtree_ctx->root); node; node = rb_next(node)) {
_______________________________________________ Linux-kernel-commits mailing list [email protected] https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits
