aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-at91.c2
-rw-r--r--drivers/i2c/busses/i2c-bcm2835.c2
-rw-r--r--drivers/i2c/busses/i2c-davinci.c2
-rw-r--r--drivers/i2c/busses/i2c-designware-core.c2
-rw-r--r--drivers/i2c/busses/i2c-ismt.c2
-rw-r--r--drivers/i2c/busses/i2c-mxs.c2
-rw-r--r--drivers/i2c/busses/i2c-omap.c2
-rw-r--r--drivers/i2c/busses/i2c-tegra.c2
-rw-r--r--drivers/i2c/busses/i2c-wmt.c4
9 files changed, 10 insertions, 10 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) {
diff --git a/drivers/i2c/busses/i2c-bcm2835.c b/drivers/i2c/busses/i2c-bcm2835.c
index ea4b08fc3353..d7e8600f31fb 100644
--- a/drivers/i2c/busses/i2c-bcm2835.c
+++ b/drivers/i2c/busses/i2c-bcm2835.c
@@ -151,7 +151,7 @@ static int bcm2835_i2c_xfer_msg(struct bcm2835_i2c_dev *i2c_dev,
151 151
152 i2c_dev->msg_buf = msg->buf; 152 i2c_dev->msg_buf = msg->buf;
153 i2c_dev->msg_buf_remaining = msg->len; 153 i2c_dev->msg_buf_remaining = msg->len;
154 INIT_COMPLETION(i2c_dev->completion); 154 reinit_completion(&i2c_dev->completion);
155 155
156 bcm2835_i2c_writel(i2c_dev, BCM2835_I2C_C, BCM2835_I2C_C_CLEAR); 156 bcm2835_i2c_writel(i2c_dev, BCM2835_I2C_C, BCM2835_I2C_C_CLEAR);
157 157
diff --git a/drivers/i2c/busses/i2c-davinci.c b/drivers/i2c/busses/i2c-davinci.c
index 132369fad4e0..960dec61c64e 100644
--- a/drivers/i2c/busses/i2c-davinci.c
+++ b/drivers/i2c/busses/i2c-davinci.c
@@ -323,7 +323,7 @@ i2c_davinci_xfer_msg(struct i2c_adapter *adap, struct i2c_msg *msg, int stop)
323 323
324 davinci_i2c_write_reg(dev, DAVINCI_I2C_CNT_REG, dev->buf_len); 324 davinci_i2c_write_reg(dev, DAVINCI_I2C_CNT_REG, dev->buf_len);
325 325
326 INIT_COMPLETION(dev->cmd_complete); 326 reinit_completion(&dev->cmd_complete);
327 dev->cmd_err = 0; 327 dev->cmd_err = 0;
328 328
329 /* Take I2C out of reset and configure it as master */ 329 /* Take I2C out of reset and configure it as master */
diff --git a/drivers/i2c/busses/i2c-designware-core.c b/drivers/i2c/busses/i2c-designware-core.c
index 5888feef1ac5..e89e3e2145e5 100644
--- a/drivers/i2c/busses/i2c-designware-core.c
+++ b/drivers/i2c/busses/i2c-designware-core.c
@@ -613,7 +613,7 @@ i2c_dw_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
613 mutex_lock(&dev->lock); 613 mutex_lock(&dev->lock);
614 pm_runtime_get_sync(dev->dev); 614 pm_runtime_get_sync(dev->dev);
615 615
616 INIT_COMPLETION(dev->cmd_complete); 616 reinit_completion(&dev->cmd_complete);
617 dev->msgs = msgs; 617 dev->msgs = msgs;
618 dev->msgs_num = num; 618 dev->msgs_num = num;
619 dev->cmd_err = 0; 619 dev->cmd_err = 0;
diff --git a/drivers/i2c/busses/i2c-ismt.c b/drivers/i2c/busses/i2c-ismt.c
index 1672effbcebb..0043ede234c2 100644
--- a/drivers/i2c/busses/i2c-ismt.c
+++ b/drivers/i2c/busses/i2c-ismt.c
@@ -541,7 +541,7 @@ static int ismt_access(struct i2c_adapter *adap, u16 addr,
541 desc->dptr_high = upper_32_bits(dma_addr); 541 desc->dptr_high = upper_32_bits(dma_addr);
542 } 542 }
543 543
544 INIT_COMPLETION(priv->cmp); 544 reinit_completion(&priv->cmp);
545 545
546 /* Add the descriptor */ 546 /* Add the descriptor */
547 ismt_submit_desc(priv); 547 ismt_submit_desc(priv);
diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c
index b7c857774708..3aedd86a6468 100644
--- a/drivers/i2c/busses/i2c-mxs.c
+++ b/drivers/i2c/busses/i2c-mxs.c
@@ -505,7 +505,7 @@ static int mxs_i2c_xfer_msg(struct i2c_adapter *adap, struct i2c_msg *msg,
505 return err; 505 return err;
506 } 506 }
507 } else { 507 } else {
508 INIT_COMPLETION(i2c->cmd_complete); 508 reinit_completion(&i2c->cmd_complete);
509 ret = mxs_i2c_dma_setup_xfer(adap, msg, flags); 509 ret = mxs_i2c_dma_setup_xfer(adap, msg, flags);
510 if (ret) 510 if (ret)
511 return ret; 511 return ret;
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index 9967a6f9c2ff..a6a891d7970d 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -543,7 +543,7 @@ static int omap_i2c_xfer_msg(struct i2c_adapter *adap,
543 w |= OMAP_I2C_BUF_RXFIF_CLR | OMAP_I2C_BUF_TXFIF_CLR; 543 w |= OMAP_I2C_BUF_RXFIF_CLR | OMAP_I2C_BUF_TXFIF_CLR;
544 omap_i2c_write_reg(dev, OMAP_I2C_BUF_REG, w); 544 omap_i2c_write_reg(dev, OMAP_I2C_BUF_REG, w);
545 545
546 INIT_COMPLETION(dev->cmd_complete); 546 reinit_completion(&dev->cmd_complete);
547 dev->cmd_err = 0; 547 dev->cmd_err = 0;
548 548
549 w = OMAP_I2C_CON_EN | OMAP_I2C_CON_MST | OMAP_I2C_CON_STT; 549 w = OMAP_I2C_CON_EN | OMAP_I2C_CON_MST | OMAP_I2C_CON_STT;
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c
index c457cb447c66..e661edee4d0c 100644
--- a/drivers/i2c/busses/i2c-tegra.c
+++ b/drivers/i2c/busses/i2c-tegra.c
@@ -544,7 +544,7 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_dev *i2c_dev,
544 i2c_dev->msg_buf_remaining = msg->len; 544 i2c_dev->msg_buf_remaining = msg->len;
545 i2c_dev->msg_err = I2C_ERR_NONE; 545 i2c_dev->msg_err = I2C_ERR_NONE;
546 i2c_dev->msg_read = (msg->flags & I2C_M_RD); 546 i2c_dev->msg_read = (msg->flags & I2C_M_RD);
547 INIT_COMPLETION(i2c_dev->msg_complete); 547 reinit_completion(&i2c_dev->msg_complete);
548 548
549 packet_header = (0 << PACKET_HEADER0_HEADER_SIZE_SHIFT) | 549 packet_header = (0 << PACKET_HEADER0_HEADER_SIZE_SHIFT) |
550 PACKET_HEADER0_PROTOCOL_I2C | 550 PACKET_HEADER0_PROTOCOL_I2C |
diff --git a/drivers/i2c/busses/i2c-wmt.c b/drivers/i2c/busses/i2c-wmt.c
index c65da3d913a0..31395fa8121d 100644
--- a/drivers/i2c/busses/i2c-wmt.c
+++ b/drivers/i2c/busses/i2c-wmt.c
@@ -158,7 +158,7 @@ static int wmt_i2c_write(struct i2c_adapter *adap, struct i2c_msg *pmsg,
158 writew(val, i2c_dev->base + REG_CR); 158 writew(val, i2c_dev->base + REG_CR);
159 } 159 }
160 160
161 INIT_COMPLETION(i2c_dev->complete); 161 reinit_completion(&i2c_dev->complete);
162 162
163 if (i2c_dev->mode == I2C_MODE_STANDARD) 163 if (i2c_dev->mode == I2C_MODE_STANDARD)
164 tcr_val = TCR_STANDARD_MODE; 164 tcr_val = TCR_STANDARD_MODE;
@@ -247,7 +247,7 @@ static int wmt_i2c_read(struct i2c_adapter *adap, struct i2c_msg *pmsg,
247 writew(val, i2c_dev->base + REG_CR); 247 writew(val, i2c_dev->base + REG_CR);
248 } 248 }
249 249
250 INIT_COMPLETION(i2c_dev->complete); 250 reinit_completion(&i2c_dev->complete);
251 251
252 if (i2c_dev->mode == I2C_MODE_STANDARD) 252 if (i2c_dev->mode == I2C_MODE_STANDARD)
253 tcr_val = TCR_STANDARD_MODE; 253 tcr_val = TCR_STANDARD_MODE;