* [PATCH] cxusb: Mygica D689 compilation warning fix and clean up
@ 2009-11-28 11:36 David T. L. Wong
0 siblings, 0 replies; only message in thread
From: David T. L. Wong @ 2009-11-28 11:36 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: v4l-dvb
[-- Attachment #1: Type: text/plain, Size: 166 bytes --]
Hi,
This patch fix compilation warning for cxusb mygica d689 and clean up
unused code.
Regards,
David
Signed-off-by: David T. L. Wong <davidtlwong@gmail.com>
[-- Attachment #2: mygica_d689_fix_warnings.patch --]
[-- Type: text/x-patch, Size: 841 bytes --]
diff --git a/linux/drivers/media/dvb/dvb-usb/cxusb.c b/linux/drivers/media/dvb/dvb-usb/cxusb.c
--- a/linux/drivers/media/dvb/dvb-usb/cxusb.c
+++ b/linux/drivers/media/dvb/dvb-usb/cxusb.c
@@ -1195,7 +1195,6 @@
static int cxusb_mygica_d689_frontend_attach(struct dvb_usb_adapter *adap)
{
struct dvb_usb_device *d = adap->dev;
- int n;
/* Select required USB configuration */
if (usb_set_interface(d->udev, 0, 0) < 0)
@@ -1209,15 +1208,6 @@
usb_clear_halt(d->udev,
usb_rcvbulkpipe(d->udev, d->props.adapter[0].stream.endpoint));
-#if 0
- /* Drain USB pipes to avoid hang after reboot */
- for (n = 0; n < 5; n++) {
- cxusb_d680_dmb_drain_message(d);
- cxusb_d680_dmb_drain_video(d);
- msleep(200);
- }
-#endif
-
/* Reset the tuner */
if (cxusb_d680_dmb_gpio_tuner(d, 0x07, 0) < 0) {
err("clear tuner gpio failed");
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-28 11:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-28 11:36 [PATCH] cxusb: Mygica D689 compilation warning fix and clean up David T. L. Wong
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.