Skip to content

Commit

Permalink
regmap: make sure we unlock on failure in regmap_bulk_write
Browse files Browse the repository at this point in the history
Signed-off-by: Courtney Cavin <courtney.cavin@sonymobile.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Courtney Cavin authored and Mark Brown committed Nov 21, 2013
1 parent 04bc9ac commit 73f080f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/regmap/regmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@ int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val,
val + (i * val_bytes),
val_bytes);
if (ret != 0)
return ret;
goto out;
}
} else {
ret = _regmap_raw_write(map, reg, wval, val_bytes * val_count);
Expand Down

0 comments on commit 73f080f

Please sign in to comment.