From: Philipp Zabel
Date: Fri, 16 May 2014 14:25:34 +0000 (+0200)
Subject: regmap: mmio: Fix regmap_mmio_write for uneven counts
X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~30^2~2^2
X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e804b7c72d4efd2318428a2c1e40fd0e173c487;p=pandora-kernel.git
regmap: mmio: Fix regmap_mmio_write for uneven counts
Commit 932580409a9dacbf42215fa737bf06ae2c0aa624
"regmap: mmio: Add support for 1/2/8 bytes wide register address."
broke regmap_mmio_write for uneven counts, for example 32-bit register
addresses with no padding and 8-byte values (count = 5).
Fix this by allowing all counts large enough to include some value.
This check was BUG_ON(count < 4) before the last change.
Signed-off-by: Philipp Zabel
Signed-off-by: Mark Brown
---
Reading git-diff-tree failed