]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] rtl2832: Fix deadlock on i2c mux select function
authorLuis Alves <ljalvs@gmail.com>
Wed, 4 Dec 2013 23:21:22 +0000 (20:21 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 5 Mar 2014 18:39:34 +0000 (15:39 -0300)
Signed-off-by: Luis Alves <ljalvs@gmail.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/rtl2832.c

index c0366a8640c76090d3e85e9e4f0bb42a40d4e2cd..cfc54388a15ea6145f96ee7e586de45037f83336 100644 (file)
@@ -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;