From: Ionut Nicu Date: Fri, 9 Aug 2013 10:09:15 +0000 (+0200) Subject: regmap: fix regcache_reg_present() for empty cache X-Git-Tag: v3.12-rc1~193^2~5^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1767da9e8e9a1dc1416d6bb1029b8cf5659dac2a;p=pandora-kernel.git regmap: fix regcache_reg_present() for empty cache In the initial case when no reg_defaults values are provided and no register value was added to the cache yet, the cache_present bitmap is NULL. If this function is invoked for any register it should return false (i.e. the register is not cached) instead of true. Signed-off-by: Ionut Nicu Signed-off-by: Mark Brown --- Reading git-diff-tree failed