regmap: make sure we unlock on failure in regmap_bulk_write
Signed-off-by: Courtney Cavin <courtney.cavin@sonymobile.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
04bc9ac163
commit
73f080fde5
@ -1549,7 +1549,7 @@ int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val,
|
|||||||
val + (i * val_bytes),
|
val + (i * val_bytes),
|
||||||
val_bytes);
|
val_bytes);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
return ret;
|
goto out;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ret = _regmap_raw_write(map, reg, wval, val_bytes * val_count);
|
ret = _regmap_raw_write(map, reg, wval, val_bytes * val_count);
|
||||||
|
Loading…
Reference in New Issue
Block a user