Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101275
b: refs/heads/master
c: 2e74378
h: refs/heads/master
i:
  101273: 3ab405e
  101271: ff458b8
v: v3
  • Loading branch information
Troy Kisky authored and Jean Delvare committed Jul 14, 2008
1 parent 732c0ed commit 5d1d270
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 5a0d5f5ffa5d294d895ef54fc220c6182db63998
refs/heads/master: 2e7437879897a4185bd84478a0451e5367dee7ed
3 changes: 2 additions & 1 deletion trunk/drivers/i2c/busses/i2c-davinci.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ i2c_davinci_xfer_msg(struct i2c_adapter *adap, struct i2c_msg *msg, int stop)

davinci_i2c_write_reg(dev, DAVINCI_I2C_CNT_REG, dev->buf_len);

init_completion(&dev->cmd_complete);
INIT_COMPLETION(dev->cmd_complete);
dev->cmd_err = 0;

/* Take I2C out of reset, configure it as master and set the
Expand Down Expand Up @@ -519,6 +519,7 @@ static int davinci_i2c_probe(struct platform_device *pdev)
goto err_release_region;
}

init_completion(&dev->cmd_complete);
dev->dev = get_device(&pdev->dev);
dev->irq = irq->start;
platform_set_drvdata(pdev, dev);
Expand Down

0 comments on commit 5d1d270

Please sign in to comment.