Commit 0db5c800 authored by Luis Alves's avatar Luis Alves Committed by Mauro Carvalho Chehab

[media] rtl2832: Fix deadlock on i2c mux select function

Signed-off-by: default avatarLuis Alves <ljalvs@gmail.com>
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 0ea872d4
......@@ -917,7 +917,7 @@ static int rtl2832_select(struct i2c_adapter *adap, void *mux_priv, u32 chan_id)
buf[0] = 0x00;
buf[1] = 0x01;
ret = i2c_transfer(adap, msg, 1);
ret = __i2c_transfer(adap, msg, 1);
if (ret != 1)
goto err;
......@@ -930,7 +930,7 @@ static int rtl2832_select(struct i2c_adapter *adap, void *mux_priv, u32 chan_id)
else
buf[1] = 0x10; /* close */
ret = i2c_transfer(adap, msg, 1);
ret = __i2c_transfer(adap, msg, 1);
if (ret != 1)
goto err;
......
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