Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319171
b: refs/heads/master
c: 0e33bbb
h: refs/heads/master
i:
  319169: af96c77
  319167: d3981f8
v: v3
  • Loading branch information
Shubhrajyoti D authored and Wolfram Sang committed Jul 12, 2012
1 parent 128819e commit bdb558e
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: 5692d2a22ed9c1a1bc3030bd8188f335b1b0b58c
refs/heads/master: 0e33bbb25436949cc100d40edfbe0f96dfa25882
3 changes: 2 additions & 1 deletion trunk/drivers/i2c/busses/i2c-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ static int omap_i2c_xfer_msg(struct i2c_adapter *adap,
w |= OMAP_I2C_BUF_RXFIF_CLR | OMAP_I2C_BUF_TXFIF_CLR;
omap_i2c_write_reg(dev, OMAP_I2C_BUF_REG, w);

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

w = OMAP_I2C_CON_EN | OMAP_I2C_CON_MST | OMAP_I2C_CON_STT;
Expand Down Expand Up @@ -999,6 +999,7 @@ omap_i2c_probe(struct platform_device *pdev)
}

platform_set_drvdata(pdev, dev);
init_completion(&dev->cmd_complete);

dev->reg_shift = (dev->flags >> OMAP_I2C_FLAG_BUS_SHIFT__SHIFT) & 3;

Expand Down

0 comments on commit bdb558e

Please sign in to comment.