Commit eea86f41 authored by Federico Vaga's avatar Federico Vaga

sw:i2c: unselecting is superfluous

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent f90e7c1d
......@@ -615,7 +615,6 @@ static int ocores_i2c_mux_deselect(struct i2c_adapter *adap,
mux = oc_getreg(i2c, OCI2C_OHWR_MUX);
if (unlikely(!(mux & OCI2C_OHWR_MUX_BUSY)))
dev_err(&adap->dev, "deselect a bus that was not selected\n");
mux &= ~OCI2C_OHWR_MUX_SEL_MASK;
mux &= ~OCI2C_OHWR_MUX_BUSY;
oc_setreg(i2c, OCI2C_OHWR_MUX, mux);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment