Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168918
b: refs/heads/master
c: e49bd72
h: refs/heads/master
v: v3
  • Loading branch information
Pete Eberlein authored and Mauro Carvalho Chehab committed Nov 30, 2009
1 parent 8e89082 commit 2c1fb96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 7924326fef03e9992c118a42aa148c4f824a4097
refs/heads/master: e49bd72f9cfba9f0d0204f961d036cd0c7e37f2e
4 changes: 2 additions & 2 deletions trunk/drivers/staging/go7007/s2250-board.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ static int read_reg_fp(struct i2c_client *client, u16 addr, u16 *val)

memset(buf, 0xcd, 6);
usb = go->hpi_context;
if (down_interruptible(&usb->i2c_lock) != 0) {
if (mutex_lock_interruptible(&usb->i2c_lock) != 0) {
printk(KERN_INFO "i2c lock failed\n");
kfree(buf);
return -EINTR;
Expand All @@ -270,7 +270,7 @@ static int read_reg_fp(struct i2c_client *client, u16 addr, u16 *val)
kfree(buf);
return -EFAULT;
}
up(&usb->i2c_lock);
mutex_unlock(&usb->i2c_lock);

*val = (buf[0] << 8) | buf[1];
kfree(buf);
Expand Down

0 comments on commit 2c1fb96

Please sign in to comment.