diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-04-06 17:17:33 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-07 04:25:35 -0400 |
commit | 9878647f4349dbaa46b4026ed9bbf8acfc0de34c (patch) | |
tree | 7d785cb74473da8cb3353359b74cfb2eccb1501a /drivers/base/regmap | |
parent | 40606dba450830e50420599c52a86cf6ce5c6a14 (diff) |
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>
Diffstat (limited to 'drivers/base/regmap')
-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 ffa0e850839e..bdf4dc865293 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, | |||
37 | 37 | ||
38 | BUG_ON(reg_size != 4); | 38 | BUG_ON(reg_size != 4); |
39 | 39 | ||
40 | if (val_size % ctx->val_bytes) | ||
41 | return -EIO; | ||
42 | |||
43 | offset = be32_to_cpup(reg); | 40 | offset = be32_to_cpup(reg); |
44 | 41 | ||
45 | while (val_size) { | 42 | while (val_size) { |
@@ -86,9 +83,6 @@ static int regmap_mmio_read(void *context, | |||
86 | 83 | ||
87 | BUG_ON(reg_size != 4); | 84 | BUG_ON(reg_size != 4); |
88 | 85 | ||
89 | if (val_size % ctx->val_bytes) | ||
90 | return -EIO; | ||
91 | |||
92 | offset = be32_to_cpup(reg); | 86 | offset = be32_to_cpup(reg); |
93 | 87 | ||
94 | while (val_size) { | 88 | while (val_size) { |