diff options
| -rw-r--r-- | drivers/i2c/muxes/i2c-mux-pca9541.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/i2c/muxes/i2c-mux-pca9541.c b/drivers/i2c/muxes/i2c-mux-pca9541.c index 6a39adaf433f..bc7c8cee5a8c 100644 --- a/drivers/i2c/muxes/i2c-mux-pca9541.c +++ b/drivers/i2c/muxes/i2c-mux-pca9541.c | |||
| @@ -345,11 +345,11 @@ static int pca9541_probe(struct i2c_client *client, | |||
| 345 | 345 | ||
| 346 | /* | 346 | /* |
| 347 | * I2C accesses are unprotected here. | 347 | * I2C accesses are unprotected here. |
| 348 | * We have to lock the adapter before releasing the bus. | 348 | * We have to lock the I2C segment before releasing the bus. |
| 349 | */ | 349 | */ |
| 350 | i2c_lock_adapter(adap); | 350 | i2c_lock_bus(adap, I2C_LOCK_SEGMENT); |
| 351 | pca9541_release_bus(client); | 351 | pca9541_release_bus(client); |
| 352 | i2c_unlock_adapter(adap); | 352 | i2c_unlock_bus(adap, I2C_LOCK_SEGMENT); |
| 353 | 353 | ||
| 354 | /* Create mux adapter */ | 354 | /* Create mux adapter */ |
| 355 | 355 | ||
