diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-04-06 21:17:33 (GMT) |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-13 10:29:18 (GMT) |
commit | 8664d4901fb17b55aea47ce4ab20fe82c6c177f2 (patch) | |
tree | 3d7060c8082f7d02a7307db1a96ab79b932b8ce4 | |
parent | ae5d8af579354fb8e984735de9b4b6e9ad6fecb8 (diff) | |
download | linux-8664d4901fb17b55aea47ce4ab20fe82c6c177f2.tar.xz |
regmap: mmio: remove some error checks now in the core
These error checks are implemented in regmap core. Remove the duplicate
code from regmap-mmio.c
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | drivers/base/regmap/regmap-mmio.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/base/regmap/regmap-mmio.c b/drivers/base/regmap/regmap-mmio.c index ffa0e85..bdf4dc8 100644 --- a/drivers/base/regmap/regmap-mmio.c +++ b/drivers/base/regmap/regmap-mmio.c @@ -37,9 +37,6 @@ static int regmap_mmio_gather_write(void *context, BUG_ON(reg_size != 4); - if (val_size % ctx->val_bytes) - return -EIO; - offset = be32_to_cpup(reg); while (val_size) { @@ -86,9 +83,6 @@ static int regmap_mmio_read(void *context, BUG_ON(reg_size != 4); - if (val_size % ctx->val_bytes) - return -EIO; - offset = be32_to_cpup(reg); while (val_size) { |