Skip to content
Snippets Groups Projects
Commit eea86f41 authored by Federico Vaga's avatar Federico Vaga
Browse files

sw:i2c: unselecting is superfluous


Signed-off-by: default avatarFederico Vaga <federico.vaga@cern.ch>
parent f90e7c1d
Branches
Tags
No related merge requests found
...@@ -615,7 +615,6 @@ static int ocores_i2c_mux_deselect(struct i2c_adapter *adap, ...@@ -615,7 +615,6 @@ static int ocores_i2c_mux_deselect(struct i2c_adapter *adap,
mux = oc_getreg(i2c, OCI2C_OHWR_MUX); mux = oc_getreg(i2c, OCI2C_OHWR_MUX);
if (unlikely(!(mux & OCI2C_OHWR_MUX_BUSY))) if (unlikely(!(mux & OCI2C_OHWR_MUX_BUSY)))
dev_err(&adap->dev, "deselect a bus that was not selected\n"); dev_err(&adap->dev, "deselect a bus that was not selected\n");
mux &= ~OCI2C_OHWR_MUX_SEL_MASK;
mux &= ~OCI2C_OHWR_MUX_BUSY; mux &= ~OCI2C_OHWR_MUX_BUSY;
oc_setreg(i2c, OCI2C_OHWR_MUX, mux); oc_setreg(i2c, OCI2C_OHWR_MUX, mux);
......
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