aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-07-23 08:58:38 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-01-21 10:44:50 -0500
commit2212501ffad7fee1c2fcf9d6d55a24b489da18ad (patch)
treebe383a5a9799f6da5ee9fe9d39290dad32403bb5 /drivers/media/dvb
parentd20a7f7277785e6f7fbe02eb469f7a99a9f058a4 (diff)
[media] az6007: Comment the gate_ctl mutex
The mutex is there to protect the I2C gate. However, for some reason, it is being called twice: [ 2103.542796] usbcore: registered new interface driver dvb_usb_az6007 [ 2103.772392] az6007: drxk_gate_ctrl: enable [ 2103.793900] az6007: drxk_gate_ctrl: enable For now, let's just comment, to allow the driver to run. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/dvb-usb/az6007.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-usb/az6007.c b/drivers/media/dvb/dvb-usb/az6007.c
index 56126d41a604..ed376b8292ce 100644
--- a/drivers/media/dvb/dvb-usb/az6007.c
+++ b/drivers/media/dvb/dvb-usb/az6007.c
@@ -52,7 +52,7 @@ static int drxk_gate_ctrl(struct dvb_frontend *fe, int enable)
52 struct az6007_device_state *st; 52 struct az6007_device_state *st;
53 int status; 53 int status;
54 54
55 info("%s", __func__); 55 info("%s: %s", __func__, enable? "enable" : "disable" );
56 56
57 if (!adap) 57 if (!adap)
58 return -EINVAL; 58 return -EINVAL;
@@ -64,10 +64,14 @@ static int drxk_gate_ctrl(struct dvb_frontend *fe, int enable)
64 64
65 65
66 if (enable) { 66 if (enable) {
67#if 0
67 down(&st->pll_mutex); 68 down(&st->pll_mutex);
69#endif
68 status = st->gate_ctrl(fe, 1); 70 status = st->gate_ctrl(fe, 1);
69 } else { 71 } else {
72#if 0
70 status = st->gate_ctrl(fe, 0); 73 status = st->gate_ctrl(fe, 0);
74#endif
71 up(&st->pll_mutex); 75 up(&st->pll_mutex);
72 } 76 }
73 return status; 77 return status;