aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-at91.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/busses/i2c-at91.c')
-rw-r--r--drivers/i2c/busses/i2c-at91.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c
index fd059308affa..8edba9de76df 100644
--- a/drivers/i2c/busses/i2c-at91.c
+++ b/drivers/i2c/busses/i2c-at91.c
@@ -371,7 +371,7 @@ static int at91_do_twi_transfer(struct at91_twi_dev *dev)
371 dev_dbg(dev->dev, "transfer: %s %d bytes.\n", 371 dev_dbg(dev->dev, "transfer: %s %d bytes.\n",
372 (dev->msg->flags & I2C_M_RD) ? "read" : "write", dev->buf_len); 372 (dev->msg->flags & I2C_M_RD) ? "read" : "write", dev->buf_len);
373 373
374 INIT_COMPLETION(dev->cmd_complete); 374 reinit_completion(&dev->cmd_complete);
375 dev->transfer_status = 0; 375 dev->transfer_status = 0;
376 376
377 if (!dev->buf_len) { 377 if (!dev->buf_len) {