diff options
Diffstat (limited to 'drivers/i2c/busses/i2c-wmt.c')
-rw-r--r-- | drivers/i2c/busses/i2c-wmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |