From: Lars-Peter Clausen Date: Fri, 23 Mar 2012 10:04:57 +0000 (+0100) Subject: regmap: rbtree: Fix register default look-up in sync X-Git-Tag: v3.4-rc2~21^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b4e9e43fd210e0cd2a5d29357e7c000e13e08ae;p=pandora-kernel.git regmap: rbtree: Fix register default look-up in sync The code currently passes the register offset in the current block to regcache_lookup_reg. This works fine as long as there is only one block and with base register of 0, but in all other cases it will look-up the default for a wrong register, which can cause unnecessary register writes. This patch fixes it by passing the actual register number to regcache_lookup_reg. Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown Cc: --- Reading git-diff-tree failed