diff options
-rw-r--r-- | drivers/i2c/busses/i2c-davinci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-davinci.c b/drivers/i2c/busses/i2c-davinci.c index 160857296952..af3846eda985 100644 --- a/drivers/i2c/busses/i2c-davinci.c +++ b/drivers/i2c/busses/i2c-davinci.c | |||
@@ -262,7 +262,7 @@ i2c_davinci_xfer_msg(struct i2c_adapter *adap, struct i2c_msg *msg, int stop) | |||
262 | 262 | ||
263 | davinci_i2c_write_reg(dev, DAVINCI_I2C_CNT_REG, dev->buf_len); | 263 | davinci_i2c_write_reg(dev, DAVINCI_I2C_CNT_REG, dev->buf_len); |
264 | 264 | ||
265 | init_completion(&dev->cmd_complete); | 265 | INIT_COMPLETION(dev->cmd_complete); |
266 | dev->cmd_err = 0; | 266 | dev->cmd_err = 0; |
267 | 267 | ||
268 | /* Take I2C out of reset, configure it as master and set the | 268 | /* Take I2C out of reset, configure it as master and set the |
@@ -519,6 +519,7 @@ static int davinci_i2c_probe(struct platform_device *pdev) | |||
519 | goto err_release_region; | 519 | goto err_release_region; |
520 | } | 520 | } |
521 | 521 | ||
522 | init_completion(&dev->cmd_complete); | ||
522 | dev->dev = get_device(&pdev->dev); | 523 | dev->dev = get_device(&pdev->dev); |
523 | dev->irq = irq->start; | 524 | dev->irq = irq->start; |
524 | platform_set_drvdata(pdev, dev); | 525 | platform_set_drvdata(pdev, dev); |