aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c
diff options
context:
space:
mode:
authorPatrick Boettcher <pb@linuxtv.org>2006-08-02 07:44:31 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-09-26 10:53:47 -0400
commit5a19f312162abd1356cdcda608f2b13502a383cc (patch)
treeec54b98becf8e47f215587f33e26784fc4011732 /drivers/media/dvb/dvb-usb/dvb-usb-dvb.c
parent42afd061700edb43bb082bc65a2ddde431151d6b (diff)
V4L/DVB (4465): Attach the dib3000mc correctly
Flynn Marquardt found out that there is problem with the new dib3000mc-driver when using with the real dib3000mc. It resulted in a segfault. Fixed two things: use the correct I2C address and do not attach a tuner, when the demod was previously failing. Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dvb-usb-dvb.c')
-rw-r--r--drivers/media/dvb/dvb-usb/dvb-usb-dvb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c b/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c
index 71a754e2287e..3a19689d9c9a 100644
--- a/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c
+++ b/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c
@@ -191,12 +191,13 @@ int dvb_usb_fe_init(struct dvb_usb_device* d)
191 d->fe = NULL; 191 d->fe = NULL;
192 return -ENODEV; 192 return -ENODEV;
193 } 193 }
194
195 /* only attach the tuner if the demod is there */
196 if (d->props.tuner_attach != NULL)
197 d->props.tuner_attach(d);
194 } else 198 } else
195 err("no frontend was attached by '%s'",d->desc->name); 199 err("no frontend was attached by '%s'",d->desc->name);
196 200
197 if (d->props.tuner_attach != NULL)
198 d->props.tuner_attach(d);
199
200 return 0; 201 return 0;
201} 202}
202 203