Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267013
b: refs/heads/master
c: 04e016a
h: refs/heads/master
i:
  267011: 792c5b2
v: v3
  • Loading branch information
Mark Brown committed Oct 10, 2011
1 parent f62f9ce commit 145dc5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e6ace00a045251bd172b9b9c2379857bbff3dc7
refs/heads/master: 04e016adcae28b65ddc9e756947fa1526a51c0b5
4 changes: 4 additions & 0 deletions trunk/drivers/base/regmap/regmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,8 @@ int regmap_raw_write(struct regmap *map, unsigned int reg,
{
int ret;

WARN_ON(map->cache_type != REGCACHE_NONE);

mutex_lock(&map->lock);

ret = _regmap_raw_write(map, reg, val, val_len);
Expand Down Expand Up @@ -481,6 +483,8 @@ int regmap_raw_read(struct regmap *map, unsigned int reg, void *val,
{
int ret;

WARN_ON(map->cache_type != REGCACHE_NONE);

mutex_lock(&map->lock);

ret = _regmap_raw_read(map, reg, val, val_len);
Expand Down

0 comments on commit 145dc5f

Please sign in to comment.