regmap: mmio: remove some error checks now in the core
Stephen Warren [Fri, 6 Apr 2012 21:17:33 +0000 (15:17 -0600)]
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>
(cherry picked from commit 9878647f4349dbaa46b4026ed9bbf8acfc0de34c)

Change-Id: I32979da1bbca852470c0cb8d8d997b2c77d6703f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96506
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

drivers/base/regmap/regmap-mmio.c

index ffa0e85..bdf4dc8 100644 (file)
@@ -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) {