Revert "i2c: xiic: xiic_xfer(): Fix runtime PM leak on error path"
This reverts commit 46ed34aa9f
.
This commit is contained in:
parent
85e2f2e500
commit
d10de7671b
1 changed files with 1 additions and 3 deletions
|
@ -744,7 +744,7 @@ static int xiic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
|
|||
err = xiic_start_xfer(i2c, msgs, num);
|
||||
if (err < 0) {
|
||||
dev_err(adap->dev.parent, "Error xiic_start_xfer\n");
|
||||
goto out;
|
||||
return err;
|
||||
}
|
||||
|
||||
err = wait_for_completion_timeout(&i2c->completion, XIIC_XFER_TIMEOUT);
|
||||
|
@ -762,8 +762,6 @@ static int xiic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
|
|||
err = (i2c->state == STATE_DONE) ? num : -EIO;
|
||||
}
|
||||
mutex_unlock(&i2c->lock);
|
||||
|
||||
out:
|
||||
pm_runtime_mark_last_busy(i2c->dev);
|
||||
pm_runtime_put_autosuspend(i2c->dev);
|
||||
return err;
|
||||
|
|
Loading…
Add table
Reference in a new issue