Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296873
b: refs/heads/master
c: 392cbd1
h: refs/heads/master
i:
  296871: 4244c70
v: v3
  • Loading branch information
Rabin Vincent authored and Samuel Ortiz committed Mar 16, 2012
1 parent 1975a02 commit 9f0d9ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bd155d2c3c8b04d66f7890dbd9539c37e9dea02b
refs/heads/master: 392cbd1e608ba79bd2da652eb3a28d841e51eaee
12 changes: 3 additions & 9 deletions trunk/drivers/mfd/ab8500-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@ static int set_register_interruptible(struct ab8500 *ab8500, u8 bank,

dev_vdbg(ab8500->dev, "wr: addr %#x <= %#x\n", addr, data);

ret = mutex_lock_interruptible(&ab8500->lock);
if (ret)
return ret;
mutex_lock(&ab8500->lock);

ret = ab8500->write(ab8500, addr, data);
if (ret < 0)
Expand All @@ -176,9 +174,7 @@ static int get_register_interruptible(struct ab8500 *ab8500, u8 bank,
* bank on higher 8 bits and reg in lower */
u16 addr = ((u16)bank) << 8 | reg;

ret = mutex_lock_interruptible(&ab8500->lock);
if (ret)
return ret;
mutex_lock(&ab8500->lock);

ret = ab8500->read(ab8500, addr);
if (ret < 0)
Expand Down Expand Up @@ -210,9 +206,7 @@ static int mask_and_set_register_interruptible(struct ab8500 *ab8500, u8 bank,
* bank on higher 8 bits and reg in lower */
u16 addr = ((u16)bank) << 8 | reg;

ret = mutex_lock_interruptible(&ab8500->lock);
if (ret)
return ret;
mutex_lock(&ab8500->lock);

ret = ab8500->read(ab8500, addr);
if (ret < 0) {
Expand Down

0 comments on commit 9f0d9ee

Please sign in to comment.