projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40606db
)
regmap: mmio: remove some error checks now in the core
author
Stephen Warren
<swarren@nvidia.com>
Fri, 6 Apr 2012 21:17:33 +0000
(15:17 -0600)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Sat, 7 Apr 2012 08:25:35 +0000
(09:25 +0100)
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>
drivers/base/regmap/regmap-mmio.c
patch
|
blob
|
history
diff --git
a/drivers/base/regmap/regmap-mmio.c
b/drivers/base/regmap/regmap-mmio.c
index
ffa0e85
..
bdf4dc8
100644
(file)
--- 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) {