summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorMaarten ter Huurne <maarten@treewalker.org>2016-07-29 23:42:12 +0200
committerMark Brown <broonie@kernel.org>2016-07-29 23:02:19 +0100
commitb2c7f5d9c939a37c1ce7f86a642de70e3033ee9e (patch)
treed7b4086676e639a016c888de22043c6001af4ca3 /virt
parentefeb1a3ab91dc6bead3b5a522c0ceca1d711feb1 (diff)
downloadlinux-b2c7f5d9c939a37c1ce7f86a642de70e3033ee9e.tar.bz2
regmap: cache: Fix num_reg_defaults computation from reg_defaults_raw
In 3245d460 (regmap: cache: Fall back to register by register read for cache defaults) non-readable registers are skipped when initializing reg_defaults, but are still included in num_reg_defaults. So there can be uninitialized entries at the end of reg_defaults, which can cause problems when the register cache initializes from the full array. Fixed it by excluding non-readable registers from the count as well. Signed-off-by: Maarten ter Huurne <maarten@treewalker.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions